summaryrefslogtreecommitdiff
path: root/app/views/intruders/show.html.haml
blob: 325c5e3eb2c85c9c414bb9e3e268365b667f141e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
- content_for :title, t("intruders.show.page_title")

%p
  %strong= t('intruders.show.list_type') + ":"
  = @intruder.list_type
%p
  %strong= t('intruders.show.key') + ":"
  = @intruder.key
%p
  %strong= t('intruders.show.points') + ":"
  = @intruder.points
%p
  %strong= t('intruders.show.bans') + ":"
  = @intruder.bans
%p
  %strong= t('intruders.show.ban_last') + ":"
  = @intruder.ban_last
%p
  %strong= t('intruders.show.ban_end') + ":"
  = @intruder.ban_end
%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
%p
  %strong= t('intruders.show.contact_count') + ":"
  = @intruder.contact_count
%p
  %strong= t('intruders.show.contact_last') + ":"
  = @intruder.contact_last
%p
  %strong= t('intruders.show.contacts_per_second') + ":"
  = @intruder.contacts_per_second
%p
  %strong= t('intruders.show.contacts_per_second_max') + ":"
  = @intruder.contacts_per_second_max
%p
  %strong= t('intruders.show.user_agent') + ":"
  = @intruder.user_agent
%p
  %strong= t('intruders.show.to_user') + ":"
  = @intruder.to_user
%p
  %strong= t('intruders.show.comment') + ":"
  = @intruder.comment

= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @intruder }

- if ! @whois.blank?
  %p
    %pre= @whois