blob: 8e9d5b7dda4a97068ad558e22a13055d0fed1d94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
-# Sanity checking.
- group, alerts = alerts_table_group unless alerts_table_group.nil?
- if alerts.length <= 2
=partial("search_table_row", :collection => alerts)
- else
=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}
There are
%a{:onclick => alerts[1..-1].collect{|a| "$('#tr_summary_#{a.id}').toggle();"}.join + " return false;", :href => "#"}
=alerts.length - 1
more alerts
for the #{@group_by} <em>#{group}</em>.
|