Change calling convention to explicitly indicate whether the attributes are for the <th> element or the <td> element. Fixes various cases where the two were mixed up. * Fix .col-expand classes not being set correctly on the /post_versions, /pool_versions, and /notes pages. * Fix .updater and .updated-at classes not being set correctly on the /forum_topics page. * Fix the name param being ignored (noticeable in the post count field on the /tags page). * Don't pass empty string when column has no name.
23 lines
670 B
Plaintext
23 lines
670 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 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" %>
|