aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-30 22:45:49 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-30 22:45:49 +0000
commit494de72e43b0f294aed3b5006b0793ae3ab8a545 (patch)
treefe8f01676b39c9673db02ce60fc9a4577d2350b0
parent6d41bcbe7b7aab6a61594ef58d5282cb02bfe76c (diff)
Made alert tables look the same wherever they are.
-rw-r--r--views/_alerts_table_group.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/_alerts_table_group.haml b/views/_alerts_table_group.haml
index 6507377..8e9d5b7 100644
--- a/views/_alerts_table_group.haml
+++ b/views/_alerts_table_group.haml
@@ -1,10 +1,10 @@
-# Sanity checking.
- group, alerts = alerts_table_group unless alerts_table_group.nil?
- if alerts.length <= 2
- =partial("alerts_table_alert_summary", :collection => alerts)
+ =partial("search_table_row", :collection => alerts)
- else
- =partial("alerts_table_alert_summary", :collection => [alerts.first])
- =partial("alerts_table_alert_summary", :collection => alerts[1..-1], :locals => {:row_class => ["hidden"]})
+ =partial("search_table_row", :collection => [alerts.first])
+ =partial("search_table_row", :collection => alerts[1..-1], :locals => {:row_class => ["hidden"]})
%tr{:id => ["tr","group",group]}
%td &nbsp;
%td{:colspan => 2}