summaryrefslogtreecommitdiff
path: root/app/views/intruders/_index_core.html.haml
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-03 04:03:24 -0500
committerPeter Kozak <spag@golwen.net>2013-03-03 04:03:24 -0500
commitb8425f5453eab4a0fe475952af89d55ace45878e (patch)
treee3c94e998ae382fb33e26a529327bc3368b64b3b /app/views/intruders/_index_core.html.haml
parent6ed538ee9385245a7bbac838dd5b796bba2ea0c6 (diff)
firewall restart after intruder changes
Diffstat (limited to 'app/views/intruders/_index_core.html.haml')
-rw-r--r--app/views/intruders/_index_core.html.haml12
1 files changed, 2 insertions, 10 deletions
diff --git a/app/views/intruders/_index_core.html.haml b/app/views/intruders/_index_core.html.haml
index 63f2253..b9c5a76 100644
--- a/app/views/intruders/_index_core.html.haml
+++ b/app/views/intruders/_index_core.html.haml
@@ -2,11 +2,8 @@
%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')
@@ -19,21 +16,16 @@
%td
- if intruder.list_type == 'whitelist'
%i.icon-ok
- - elsif intruder.bans > 0
+ - elsif intruder.bans.to_i > 0
%i.icon-fire
- - elsif intruder.points > 0
+ - elsif intruder.points.to_i > 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