Sha256: 76f08e4ed3a65d7794deed19f5c28510bc4fb6ef0a0b33c25f889a12970ba72c
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
- expires_column = local_assigns.key?(:expires_column) ? local_assigns[:expires_column] : has_ttl? %tr %td= key - ip = Rack::Attack.ip_from_key(key) %td = ip (#{link_to 'Look up', "http://ip-lookup.net/?ip=#{ip}", target:'_blank'}) - if expires_column %td - if has_ttl? - interval = redis.ttl("#{Rack::Attack.prefix_with_namespace}:#{key}") - if interval =# distance_of_time_in_words(interval) in #{ActiveSupport::Duration.build(interval)&.human_str} %td= link_to 'Delete', rack_attack_admin.banned_ip_path(key), method: :delete, class: 'btn'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack_attack_admin-0.1.2 | app/views/rack_attack_admin/banned_ips/_banned_ip.html.haml |