From bc8ae7a653c7bc182bbdbff91498fa4504b7b9d9 Mon Sep 17 00:00:00 2001 From: spag Date: Tue, 12 Feb 2013 23:31:23 +0100 Subject: intruder view --- app/views/intruders/show.html.haml | 9 +++++---- 1 file 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' -- cgit v1.2.3