aboutsummaryrefslogtreecommitdiff
path: root/views/_event_list.haml
blob: 73b91933040eb979087341febb015bd3b4b1989b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.alert_full_list
  .row
    %h2
    %h2 Subject
    %h2 Summary
    %h2 Raised
    %h2 Acknowledged
    %h2 Cleared
  - alerts.each do |alert|
    .row{:id => alert.id, :class => cycle('alt','')}
      .more
        %a{:href => "/alert/#{alert.id}"} [details]
      .subject= alert.subject
      .summary= alert.summary
      .raised{:class => "up"+alert.update_type}= alert.raised_at ? alert.time_relative(Time.now - alert.raised_at.to_time) : ""
      .acknowledged{:class => "up"+alert.update_type}
        - if alert.acknowledged_at
          = alert.time_relative(Time.now - alert.acknowledged_at.to_time)
          by 
          = alert.acknowledged_by
      .cleared{:class => "up"+alert.update_type}= alert.cleared? ? alert.time_relative(Time.now - alert.cleared_at.to_time) : ""