summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-12 23:31:23 +0100
committerspag <spag@golwen.net>2013-02-12 23:31:23 +0100
commitbc8ae7a653c7bc182bbdbff91498fa4504b7b9d9 (patch)
tree83065e388bf8f7547c4c825d4e5ac6d2393cb998 /app
parent345c2b2b67cde33de7825a2cde32316900793fe9 (diff)
intruder view
Diffstat (limited to 'app')
-rw-r--r--app/views/intruders/show.html.haml9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/intruders/show.html.haml b/app/views/intruders/show.html.haml
index 325c5e3..df50872 100644
--- a/app/views/intruders/show.html.haml
+++ b/app/views/intruders/show.html.haml
@@ -21,10 +21,6 @@
%p
%strong= t('intruders.show.contact_ip') + ":"
= @intruder.contact_ip
- - if ! @intruder.contact_ip.blank? && Object.const_defined?('Whois')
- %a.btn.btn-small.btn-success{ :href => intruder_path(@intruder, :whois => @intruder.contact_ip) }
- %i.icon-info-sign.icon-white
- = 'Whois'
%p
%strong= t('intruders.show.contact_port') + ":"
= @intruder.contact_port
@@ -55,3 +51,8 @@
- if ! @whois.blank?
%p
%pre= @whois
+
+- elsif ! @intruder.contact_ip.blank? && Object.const_defined?('Whois')
+ %a.btn.btn-small.btn-success{ :href => intruder_path(@intruder, :whois => @intruder.contact_ip) }
+ %i.icon-info-sign.icon-white
+ = 'Whois'