anchor.diff:    <%= state_qualifier %>State:
     <span class="alert-link"><%= @check_state ? h(@check_state.upcase) : '' %></span>
   </div>
  +</div>
  +
  +<div class="col-md-6">
   <% if @current_unscheduled_maintenance %>
     <% ack_msg = "#{@current_unscheduled_maintenance[:summary]}" %>
     <% ack_msg = ack_msg.length > 0 ? ack_msg : 'no summary given' %>
  
positive.code:           <form action="/scheduled_maintenances/<%= check_path_escaped %>" method="post">
              <input type="hidden" name="_method" value="delete">
              <input type="hidden" name="start_time" value="<%= start_time %>">
              <input type="submit" value="<%= label %>" class="button">
            </form>
          <% else %>
            &nbsp;
          <% end %>
        </td>
      </tr>
  <% end %>
  
  </table>
  <% else %>
  <p>No maintenance is scheduled</p>
  <% end %>
  
  <h4>Add Scheduled Maintenance</h4>
  <form action="/scheduled_maintenances/<%= check_path_escaped %>" method="post" class="form-horizontal">
    <div class="control-group">
      <label class="control-label" for="start_time">Start time:</label>
      <div class="controls">
        <input type="text" name="start_time" class="text" size="20" maxlength="80" value="">
        e.g. "today 4pm", "two hours hence", "friday 2pm", "2012-01-28 13:00"
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="duration">Duration:</label>
      <div class="controls">
        <input type="text" name="duration" class="text" size="20" maxlength="80" value="">
        e.g. "1 hour", "2:30:00", "three days", etc
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="summary">Summary:</label>
      <div class="controls">
        <input type="text" name="summary" class="text" size="80" maxlength="160" value="">
      </div>
    </div>
    <div class="control-group">
      <div class="controls">
        <input type="submit" value="Save" class="button">
      </div>
    </div>
  </form>
  
  <p>Times given will be interpreted in the local timezone of <%= h local_timezone %></p>
  <% if @state_changes && !@state_changes.empty? %>
    <h3>Recent state changes</h3>
    <table class="table table-bordered table-hover table-condensed">
      <tr>
      <th>Timestamp</th>
      <th>State</th>
      <th>Summary</th>
      </tr>
      <% @state_changes.each do |state_change| %>
      <tr>
      <td><%= h Time.at(state_change[:timestamp]).to_s %></td>
      <td><%= h state_change[:state] %></td>
      <td><%= h state_change[:summary] %></td>
      </tr>
      <% end %>
    </table>
  <% end %>
  
  
  <h3>Contacts</h3>
  <% if @contacts && !@contacts.empty? %>
    <table class="table table-bordered table-hover table-condensed">
  
negative.code:   <h2><%= h @check %> on <a href="<%= entity_link %>" title="entity summary"><%= h @entity %></a></h2>
  </div>
  
  <div class="row">
    <div class="col-md-6">
  <%
    state_qualifier = @check_enabled ? '' : "DISABLED. Last "
    state_class     = case @check_state
                      when 'ok'
                        'success'
                      when 'warning'
                        'warning'
                      when 'critical'
                        'danger'
                      else
  