summaryrefslogtreecommitdiff
path: root/app/views/intruders/_index_core.html.haml
blob: 31bbd11b8b4cdf87c84906455f345e690c9de28d (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
27
28
29
30
31
32
33
34
35
36
37
38
%table.table.table-striped
  %tr
    %th
    %th= t('intruders.index.contact_ip')
    %th= t('intruders.index.contact_port')
    %th= t('intruders.index.points')
    %th= t('intruders.index.bans')
    %th= t('intruders.index.ban_last')
    %th= t('intruders.index.ban_end')
    %th= t('intruders.index.contact_count')
    %th= t('intruders.index.contact_last')
    %th= t('intruders.index.contacts_per_second')
    %th= t('intruders.index.user_agent')
    %th= t('intruders.index.to_user')

  
  - for intruder in intruders
    %tr
      %td= intruder.list_type.chars.first
      %td= intruder.contact_ip
      %td= intruder.contact_port
      %td= intruder.points
      %td= intruder.bans
      %td 
        - if intruder.ban_last
          = l intruder.ban_last, :format => :short
      %td
        - if intruder.ban_end
          = l intruder.ban_end, :format => :short

      %td= intruder.contact_count
      %td
        - if intruder.contact_last
          = l intruder.contact_last, :format => :short
      %td= intruder.contacts_per_second
      %td= intruder.user_agent
      %td= intruder.to_user
      =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => intruder}