aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-30 13:17:55 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-30 13:17:55 +0000
commit1459686965ca91ce7ac5af1b4d1ab3da829685c5 (patch)
tree56f960bc92bc8a3e26e48ee070d2287be7218609 /views
parent5a099132ff0fffceda0eec2921a513b10070beb7 (diff)
Adjusted CSS not to colour non-raised alerts in tables.
Diffstat (limited to 'views')
-rw-r--r--views/_alerts_table_alert_summary.haml2
-rw-r--r--views/_search_table_row.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/views/_alerts_table_alert_summary.haml b/views/_alerts_table_alert_summary.haml
index 4159cf7..58e3eea 100644
--- a/views/_alerts_table_alert_summary.haml
+++ b/views/_alerts_table_alert_summary.haml
@@ -1,5 +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]
+- row_class = (row_class || []) + [ cycle(nil, "hilight"), alert.raised? && "raised", 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' }
diff --git a/views/_search_table_row.haml b/views/_search_table_row.haml
index 3226bc7..e971c42 100644
--- a/views/_search_table_row.haml
+++ b/views/_search_table_row.haml
@@ -1,5 +1,5 @@
- alert = search_table_row if defined? search_table_row
-- row_class = (row_class || []) + [ cycle(nil, "hilight"), alert.raised? && "triggered", alert.acknowledged? && "acknowledged", alert.level]
+- row_class = (row_class || []) + [ cycle(nil, "hilight"), alert.raised? && "raised", 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' }