Files
danbooru/app/views/bans/_secondary_links.html.erb
evazion a45c7f46be Interlink bans, ip bans, and user feedbacks pages.
* Make the bans, ip bans, ip addresses, and user feedbacks pages all
  link to one another in the secondary links.
* Add quick search bars to the secondary links on these pages.
2020-03-23 01:48:59 -05:00

15 lines
533 B
Plaintext

<% content_for(:secondary_links) do %>
<%= quick_search_form_for(:user_name, bans_path, "users", autocomplete: "user") %>
<%= subnav_link_to "Listing", bans_path %>
<% if policy(IpAddress).index? %>
<%= subnav_link_to "IP Addresses", ip_addresses_path %>
<% end %>
<% if policy(IpBan).index? %>
<%= subnav_link_to "IP Bans", ip_bans_path %>
<% end %>
<%= subnav_link_to "Feedbacks", user_feedbacks_path %>
<% if policy(Ban.new).create? %>
| <%= subnav_link_to "Ban", new_ban_path %>
<% end %>
<% end %>