- 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'