<% nav = render_erb('_nav.html.erb', binding) %> <% head = render_erb('_head.html.erb', binding) %> <% foot = render_erb('_foot.html.erb', binding) %> Flapjack - <%=h @entity %> (entity) <%= head %>
<% if @states.empty? %>

This entity has no check output associated with it

<% else %> <% @states.each do |check, status, summary, changed, updated, in_unscheduled_outage, in_scheduled_outage, notified| %> <% row_colour = case status when 'critical', 'unknown' 'error' when 'ok', 'up' 'success' else status end check_link = "/check?entity=" << u(@entity) << "&check=" << u(check) %> <% end %>
Check State Summary Last State Change Last Update Last Notification
<%= h check %> <%= h status.upcase %> <% if in_unscheduled_outage%> (Ack'd)<% end %> <% if in_scheduled_outage %> (Sched)<% end %> <%= summary %> <%= changed %> <%= updated %> <%= notified %>
<% end %>