diff options
Diffstat (limited to 'app/views/intruders/show.html.haml')
-rw-r--r-- | app/views/intruders/show.html.haml | 9 |
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' |