summaryrefslogtreecommitdiff
path: root/app/views/intruders/show.html.haml
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-12 17:03:15 +0100
committerspag <spag@golwen.net>2013-02-12 17:03:15 +0100
commit62f3f7373844185e763e1430926ebf880b0d5cb5 (patch)
tree0d2677e92f9dc03cd92576d5c0242ea88a20caf5 /app/views/intruders/show.html.haml
parente7d1428b749024096b9a22b331d110bcf04f87d1 (diff)
display whois information
Diffstat (limited to 'app/views/intruders/show.html.haml')
-rw-r--r--app/views/intruders/show.html.haml11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/views/intruders/show.html.haml b/app/views/intruders/show.html.haml
index 4941e89..325c5e3 100644
--- a/app/views/intruders/show.html.haml
+++ b/app/views/intruders/show.html.haml
@@ -21,6 +21,10 @@
%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
@@ -46,7 +50,8 @@
%strong= t('intruders.show.comment') + ":"
= @intruder.comment
-%p
- %pre= @intruder.whois
-
= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @intruder }
+
+- if ! @whois.blank?
+ %p
+ %pre= @whois