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.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/views/_alerts_table_alert_summary.haml b/views/_alerts_table_alert_summary.haml
index a06ccb8..24162c6 100644
--- a/views/_alerts_table_alert_summary.haml
+++ b/views/_alerts_table_alert_summary.haml
@@ -1,4 +1,5 @@
- alert = alerts_table_alert_summary if defined? alerts_table_alert_summary
+- row_class = (row_class || []) + [ cycle(nil, "hilight"), alert.raised? && "triggered", alert.acknowledged? && "acknowledged", alert.level]
%tr{ :class => row_class, :id => ["tr", "summary", alert.id] }
%td
%input{ :type => "checkbox", :id => "alerts[#{alert.id}]", :name => "alerts[#{alert.id}]", :class => 'alert' }