summaryrefslogtreecommitdiff
path: root/app/views/intruders/_index_core.html.haml
blob: 63f225393fc7e861f3c452f07c528ee7446d0ba9 (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
39
40
41
42
43
44
45
%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
        - if intruder.list_type == 'whitelist'
          %i.icon-ok
        - elsif intruder.bans > 0
          %i.icon-fire
        - elsif intruder.points > 0
          %i.icon-warning-sign

      %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}