Files
danbooru/app/views/ip_bans/index.html.erb
2013-03-19 23:11:58 +11:00

35 lines
876 B
Plaintext

<div id="c-ip-bans">
<div id="a-index">
<h1>IP Bans</h1>
<table class="striped" width="100%">
<thead>
<tr>
<th>IP Address</th>
<th>Banner</th>
<th>Reason</th>
<th></th>
</tr>
</thead>
<tbody>
<% @ip_bans.each do |ip_ban| %>
<tr>
<td><%= ip_ban.ip_addr %></td>
<td><%= ip_ban.creator.name %></td>
<td><%= ip_ban.reason %></td>
<td><%= link_to "Unban", ip_ban_path(ip_ban), :remote => true, :method => :delete, :confirm => "Do your really want to unban #{ip_ban.creator.name}?" %></td>
</tr>
<% end %>
</tbody>
</table>
<%= numbered_paginator(@ip_bans) %>
</div>
</div>
<%= render "secondary_links" %>
<% content_for(:page_title) do %>
IP Bans - <%= Danbooru.config.app_name %>
<% end %>