Fingerprint Bans

<% route = fn p -> ~p"/admin/fingerprint_bans?#{p}" end %> <% pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @fingerprint_bans, route: route, params: page_params(@conn.params)) %> <%= form_for :fingerprint_ban, ~p"/admin/fingerprint_bans", [method: "get", class: "hform"], fn f -> %>
<%= text_input(f, :q, name: "q", class: "hform__text input", placeholder: "Search") %> <%= submit("Search", class: "button hform__button") %>
<% end %>
New fingerprint ban <%= pagination %>
<%= for ban <- @fingerprint_bans do %> <% end %>
Fingerprint Created Expires Reason/Note Ban ID Options
<%= link(ban.fingerprint, to: ~p"/fingerprint_profiles/#{ban.fingerprint}") %> <%= pretty_time(ban.created_at) %> <%= user_abbrv(ban.banning_user) %> <%= pretty_time(ban.valid_until) %> <%= ban.reason %> <%= if present?(ban.note) do %>

Note: <%= ban.note %>

<% end %>
<%= ban.generated_ban_id %> <%= link("Edit", to: ~p"/admin/fingerprint_bans/#{ban}/edit") %> <%= if @current_user.role == "admin" do %> • <%= link("Destroy", to: ~p"/admin/fingerprint_bans/#{ban}", data: [confirm: "Are you really, really sure?", method: "delete"]) %> <% end %>
<%= pagination %>