aboutsummaryrefslogtreecommitdiff
path: root/views/_alerts_table_alert_detail.haml
blob: 4768e94d78174a8113f0691684f290cb72dea250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%tr{:class => %w(detail) + row_class, :id => ["tr", "detail", alert.id] }
  %td  
  %td{:colspan => 2}
    .detail
      :textile
        #{alert.detail}
      %address
        - if alert.raised? or alert.acknowledged?
          Raised at #{(alert.raised_at || Time.now).to_s_human} •
        - if alert.suppressed?
          Notifications suppressed until #{alert.suppress_until.to_s_human} •
        - if alert.acknowledged?
          Ack'd at #{alert.acknowledged_at.to_s_human} by #{alert.acknowledged_by} •
        Source: #{alert.source} •
        %a{ :href => "/alert/#{alert.id}" } More details
        •
        %a{ :href => "#", :onclick => "$('#tr_detail_#{alert.id}').hide(); return false;"} Hide details