From 7a2f72ce98d5e325481f98911bfe47df77711917 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 21 Dec 2020 21:16:16 -0600 Subject: [PATCH] ip bans: fix /ip_bans listing not showing subnet. --- app/views/ip_bans/index.html.erb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/ip_bans/index.html.erb b/app/views/ip_bans/index.html.erb index 326f356cc..7313ec31c 100644 --- a/app/views/ip_bans/index.html.erb +++ b/app/views/ip_bans/index.html.erb @@ -14,7 +14,7 @@ <%= table_for @ip_bans, class: "striped autofit", width: "100%" do |t| %> <% t.column "IP Address" do |ip_ban| %> - <%= link_to_ip ip_ban.subnetted_ip %> + <%= link_to ip_ban.subnetted_ip, ip_address_path(ip_ban.ip_addr.to_s) %> <% end %> <% t.column :reason, td: { class: "col-expand" } %> <% t.column "Status" do |ip_ban| %> @@ -35,7 +35,6 @@
<%= time_ago_in_words_tagged(ip_ban.created_at) %>
<% end %> <% t.column column: "control" do |ip_ban| %> - <%= link_to "Details", ip_address_path(ip_ban.ip_addr.to_s) %> | <% if ip_ban.is_deleted? %> <%= link_to "Undelete", ip_ban_path(ip_ban), remote: true, method: :put, "data-params": "ip_ban[is_deleted]=false", "data-confirm": "Are you sure you want to undelete this IP ban?" %> <% else %>