aboutsummaryrefslogtreecommitdiff
path: root/views/_alerts_table.haml
blob: 40b2b1ca21e9d00727d048e1b9284b51bd91c1e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%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
  = partial("alerts_table_group", :collection => @grouped_alerts)
  %tr
    %td{ :colspan => 3}
      %address
        Last updated at 
        = Time.now