aboutsummaryrefslogtreecommitdiff
path: root/views/_alerts_table_alert_summary.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/_alerts_table_alert_summary.haml')
-rw-r--r--views/_alerts_table_alert_summary.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/views/_alerts_table_alert_summary.haml b/views/_alerts_table_alert_summary.haml
new file mode 100644
index 0000000..06f1dc2
--- /dev/null
+++ b/views/_alerts_table_alert_summary.haml
@@ -0,0 +1,10 @@
+- alert = alerts_table_alert_summary if defined? alerts_table_alert_summary
+%tr{ :class => row_class, :id => ["tr", "summary", alert.id] }
+ %td
+ %input{ :type => "checkbox", :id => "alerts[#{alert.id}]", :name => "alerts[#{alert.id}]", :class => 'alert' }
+ %td
+ %label{ :for => "alerts[#{alert.id}]" }
+ %strong= alert.subject
+ = alert.summary
+ %a{ :id => ["a","detail", alert.id], :href => "/alert/#{alert.id}", :onclick => "fetchDetail('#{alert.id}'); return false;"} Details ↓
+ %td= alert.raised_at.to_s_relative