From 494de72e43b0f294aed3b5006b0793ae3ab8a545 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 30 Nov 2012 22:45:49 +0000 Subject: Made alert tables look the same wherever they are. --- views/_alerts_table_group.haml | 6 +++--- 1 file 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   %td{:colspan => 2} -- cgit v1.2.1