Sha256: 19f6ad5d1848b0586fd46899825f001b118b5b1e433a08ef25be3bef52e97f5f

Contents?: true

Size: 1.54 KB

Versions: 12

Compression:

Stored size: 1.54 KB

Contents

!!! 5
- nav = render_haml('_nav.haml', self)
- css = render_haml('_css.haml', self)
%html
  %head
    %title Flapjack
    = css
  %body
    %div#wrapper
      = nav
      %h1 Flapjack Status
      %h4
        Events queued:
        = @events_queued
      %h4
        All checks:
        %a(title='all checks' href='/')
          = @count_all_checks
      %h4
        Failing checks:
        %a(title='failing checks' href='/failing')
          = @count_failing_checks
      %h3
        All Checks
      %table
        %tr
          %th Entity
          %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= entity
            %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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
flapjack-0.7.1 lib/flapjack/gateways/web/views/index.haml
flapjack-0.7.0 lib/flapjack/gateways/web/views/index.haml
flapjack-0.6.61 lib/flapjack/gateways/web/views/index.haml
flapjack-0.6.60 lib/flapjack/gateways/web/views/index.haml
flapjack-0.6.59 lib/flapjack/gateways/web/views/index.haml
flapjack-0.6.58 lib/flapjack/gateways/web/views/index.haml
flapjack-0.6.57 lib/flapjack/gateways/web/views/index.haml
flapjack-0.6.56 lib/flapjack/gateways/web/views/index.haml
flapjack-0.6.55 lib/flapjack/gateways/web/views/index.haml
flapjack-0.6.54 lib/flapjack/gateways/web/views/index.haml
flapjack-0.6.53 lib/flapjack/gateways/web/views/index.haml
flapjack-0.6.52 lib/flapjack/gateways/web/views/index.haml