This commit is contained in:
albert
2010-11-19 16:24:17 -05:00
parent a156cc8c62
commit c6304c6e08
41 changed files with 346 additions and 53 deletions

View File

@@ -0,0 +1,29 @@
<div class="bans">
<div class="index">
<table>
<thead>
<tr>
<th>User</th>
<th>Expires</th>
<th>Reason</th>
<th></th>
</tr>
</thead>
<tbody>
<% @bans.each do |ban| %>
<tr id="ban-<%= ban.id %>">
<td><%= ban.user_name %></td>
<td><%= ban.expires_at %></td>
<td><%= ban.reason %></td>
<td>
<%= link_to "Edit", edit_ban_path(ban) %>
| <%= link_to "Delete", ban_path(ban), :method => :delete, :remote => true %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
<%= render "secondary_links" %>