Sha256: c708ecfc5d0c893c4069f98050203a900e1306a484276d335261ac4b3cffcf52

Contents?: true

Size: 1.86 KB

Versions: 13

Compression:

Stored size: 1.86 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 - #{@adjective.capitalize} Checks
    = head
  %body
    %div#wrap
      %div{:class => "container"}
        %div{:class => "page-header"}
          = nav
          %h2 #{@adjective.capitalize} Checks
        %p #{@count_failing_checks} failing out of #{@count_all_checks}
        %table{:class => "table table-bordered table-hover table-condensed"}
          %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|
            - colour_class = status
            - case status
            - when 'critical', 'unknown'
              - colour_class = 'error'
            - when 'ok', 'up'
              - colour_class = 'success'
            %tr{:class => colour_class}
              %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
      %div#push
    %div#footer
      = foot

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
flapjack-0.7.14 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.13 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.12 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.11 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.10 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.9 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.8 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.7 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.6 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.5 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.4 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.3 lib/flapjack/gateways/web/views/checks.haml
flapjack-0.7.2 lib/flapjack/gateways/web/views/checks.haml