From c24ae0a2a63c41b9e7ba918303c919ee16e1e25f Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 22 Mar 2020 23:40:56 -0500 Subject: [PATCH] ip addresses: add secondary links. --- app/views/ip_addresses/_secondary_links.html.erb | 7 +++++++ app/views/ip_addresses/index.html.erb | 2 ++ app/views/ip_addresses/show.html.erb | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 app/views/ip_addresses/_secondary_links.html.erb diff --git a/app/views/ip_addresses/_secondary_links.html.erb b/app/views/ip_addresses/_secondary_links.html.erb new file mode 100644 index 000000000..11d3cca0a --- /dev/null +++ b/app/views/ip_addresses/_secondary_links.html.erb @@ -0,0 +1,7 @@ +<% content_for(:secondary_links) do %> + <%= quick_search_form_for(:ip_addr, ip_addresses_path, "ip addresses") %> + <%= subnav_link_to "Listing", ip_addresses_path %> + <%= subnav_link_to "IP Bans", ip_bans_path %> + <%= subnav_link_to "Bans", bans_path %> + <%= subnav_link_to "Feedbacks", user_feedbacks_path %> +<% end %> diff --git a/app/views/ip_addresses/index.html.erb b/app/views/ip_addresses/index.html.erb index 8d0c7261b..d79f084dc 100644 --- a/app/views/ip_addresses/index.html.erb +++ b/app/views/ip_addresses/index.html.erb @@ -1,3 +1,5 @@ +<%= render "secondary_links" %> +
<% if @ip_address %> diff --git a/app/views/ip_addresses/show.html.erb b/app/views/ip_addresses/show.html.erb index a1776945d..8ce4fe3f6 100644 --- a/app/views/ip_addresses/show.html.erb +++ b/app/views/ip_addresses/show.html.erb @@ -1,3 +1,5 @@ +<%= render "secondary_links" %> +

IP Address: <%= @ip_address.ip_addr %>