diff options
Diffstat (limited to 'app/views/intruders/show.html.haml')
-rw-r--r-- | app/views/intruders/show.html.haml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/views/intruders/show.html.haml b/app/views/intruders/show.html.haml index 4941e89..df50872 100644 --- a/app/views/intruders/show.html.haml +++ b/app/views/intruders/show.html.haml @@ -46,7 +46,13 @@ %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 + +- 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' |