<h1>Sign in</h1>

<% if Date.today >= Date.new(2014,03,12) && Date.today < Date.new(2014,03,17) %>
  <br/>
  <div class="alert alert-block">
    <h2>
      <p>The GOV.UK Infrastructure Team will be doing planned maintenance from 6pm GMT on Tue, 25 Mar 2014 until 9am GMT on Wed, 26 Mar 2014. You will be unable to use Signon or any of the applications that depend on it--including all publishing tools--during this time.</p>
    </h2>
  </div>
<% elsif Date.today >= Date.new(2014,03,17) && Date.today < Date.new(2014,03,26) %>
  <br/>
  <div class="alert alert-danger">
    <h2>
      <p>The GOV.UK Infrastructure Team will be doing planned maintenance from 6pm GMT on Tue, 25 Mar 2014 until 9am GMT on Wed, 26 Mar 2014. You will be unable to use Signon or any of the applications that depend on it--including all publishing tools--during this time.</p>
    </h2>
  </div>
<% end %>

<%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'well', autocomplete: 'on' }) do |f| %>

  <%= f.label :email %>
  <%= f.email_field :email, class: 'span6', autofocus: 'autofocus' %>

  <%= f.label :password, "Passphrase" %>
  <%= f.password_field :password, class: 'span6' %>

  <% if devise_mapping.rememberable? -%>
    <label class="checkbox" for="remember_me">Remember me?
      <%= f.check_box :remember_me, class: 'checkbox' %>
    </label>
  <% end -%>

  <hr>

  <%= f.submit "Sign in", class: 'btn btn-primary' %>
<% end %>

<%= render "links" %>

<h1>Sign in</h1>

<%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'well', autocomplete: 'on' }) do |f| %>

  <%= f.label :email %>
  <%= f.email_field :email, class: 'span6', autofocus: 'autofocus' %>

  <%= f.label :password, "Passphrase" %>
  <%= f.password_field :password, class: 'span6' %>

  <% if devise_mapping.rememberable? -%>
    <label class="checkbox" for="remember_me">Remember me?
      <%= f.check_box :remember_me, class: 'checkbox' %>
    </label>
  <% end -%>

  <hr>

  <%= f.submit "Sign in", class: 'btn btn-primary' %>
<% end %>

<%= render "links" %>

Remove migration warning code from login view.
Remove migration warning code from login view.

The dates have passed, so this is now redundant.
