ip bans: fix /ip_bans listing not showing subnet.

This commit is contained in:
evazion
2020-12-21 21:16:16 -06:00
parent db488c247d
commit 7a2f72ce98

View File

@@ -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 @@
<div><%= time_ago_in_words_tagged(ip_ban.created_at) %></div>
<% 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 %>