ip bans: fix /ip_bans listing not showing subnet.
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<%= table_for @ip_bans, class: "striped autofit", width: "100%" do |t| %>
|
<%= table_for @ip_bans, class: "striped autofit", width: "100%" do |t| %>
|
||||||
<% t.column "IP Address" do |ip_ban| %>
|
<% 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 %>
|
<% end %>
|
||||||
<% t.column :reason, td: { class: "col-expand" } %>
|
<% t.column :reason, td: { class: "col-expand" } %>
|
||||||
<% t.column "Status" do |ip_ban| %>
|
<% t.column "Status" do |ip_ban| %>
|
||||||
@@ -35,7 +35,6 @@
|
|||||||
<div><%= time_ago_in_words_tagged(ip_ban.created_at) %></div>
|
<div><%= time_ago_in_words_tagged(ip_ban.created_at) %></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% t.column column: "control" do |ip_ban| %>
|
<% t.column column: "control" do |ip_ban| %>
|
||||||
<%= link_to "Details", ip_address_path(ip_ban.ip_addr.to_s) %> |
|
|
||||||
<% if ip_ban.is_deleted? %>
|
<% 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?" %>
|
<%= 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 %>
|
<% else %>
|
||||||
|
|||||||
Reference in New Issue
Block a user