aboutsummaryrefslogtreecommitdiff
path: root/views/_alerts_table.haml
blob: ed759be2e2d0e6d3830be585e23fd780e443cca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%table#alerts_table
  %tr
    %th#selector
      %input#toggle_all{ :type => "checkbox" }
      :javascript
        // This just toggles all the checkboxes.
        $('#toggle_all').change( function() {
          $('input.alert').each( function(index) {
            this.checked = !this.checked;
          });
        });
    %th#summary Summary
    %th#time    At
  - if @grouped_alerts.length > 0
    = partial("alerts_table_group", :collection => @grouped_alerts)
  - else
    %tr{:class => %w(notice)}
      %td
      %td{:style => "text-align: center;"}
        = "No #{@alert_type} alerts found!"
      %td
  %tr
    %td{ :colspan => 3}
      %address
        Last updated at 
        = Time.now