Files
danbooru/app/views/ip_bans/index.html.erb
BrokenEagle 3ab2c4c3ea Use optional parameter to set column class
- Fixes the extremely long class name on the post versions view
- Can now use one value instead of having to set th and td
- Added missing column classes on all tables
2020-01-13 21:21:13 +00:00

23 lines
688 B
Plaintext

<div id="c-ip-bans">
<div id="a-index">
<h1>IP Bans</h1>
<%= table_for @ip_bans, width: "100%" do |t| %>
<% t.column "IP Address" do |ip_ban| %>
<%= link_to_ip ip_ban.subnetted_ip %>
<% end %>
<% t.column "Banner" do |ip_ban| %>
<%= link_to_user ip_ban.creator %>
<% end %>
<% t.column :reason %>
<% t.column column: "control" do |ip_ban| %>
<%= link_to "Unban", ip_ban_path(ip_ban), :remote => true, :method => :delete, :data => {:confirm => "Do your really want to unban #{ip_ban.ip_addr}?"} %>
<% end %>
<% end %>
<%= numbered_paginator(@ip_bans) %>
</div>
</div>
<%= render "secondary_links" %>