Sha256: d6102b4fbeafb85b9f7e97ccde3ba1f14e97345ec78f949500973c129bbbcd3a
Contents?: true
Size: 1.65 KB
Versions: 1
Compression:
Stored size: 1.65 KB
Contents
!!! 5 - nav = render_haml('_nav.haml', self) - head = render_haml('_head.haml', self) - foot = render_haml('_foot.haml', self) %html %head %title Flapjack - #{@entity} (entity) = head %body %div#wrap %div{:class => "container"} %div{:class => "page-header"} = nav %h2 #{@entity} - if @states.length > 0 %table{:class => "table table-bordered table-hover table-condensed"} %tr %th Check %th State %th Last State Change %th Last Update %th Last Notification - @states.each do |entity, check, status, changed, updated, in_unscheduled_outage, in_scheduled_outage, notified_kind, notified| %tr %td - link = "/check?entity=" + CGI.escape(entity) + "&check=" + CGI.escape(check) %a(title='check detail' href=link) #{check} %td{:class => status} = status.upcase = " (Acknowledged)" if in_unscheduled_outage = " (Scheduled Maintenance)" if in_scheduled_outage %td= relative_time_ago(Time.at(changed.to_i)) + ' ago' %td= (Time.now.to_i - updated.to_i).to_s + ' seconds ago' - if notified && (notified > 0) - last_notified = relative_time_ago(Time.at(notified.to_i)) + " ago, #{notified_kind}" - else - last_notified = 'never' %td= last_notified - else %div#foo %p This entity has no check output associated with it %div#push %div#footer = foot
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flapjack-0.7.2 | lib/flapjack/gateways/web/views/entity.haml |