40 lines
980 B
Plaintext
40 lines
980 B
Plaintext
<div class="bans">
|
|
<div class="index">
|
|
<h1>Bans</h1>
|
|
|
|
<table class="striped" width="100%">
|
|
<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><%= link_to_user(ban.user) %></td>
|
|
<td><%= ban.expires_at %></td>
|
|
<td><%= format_text ban.reason %></td>
|
|
<td>
|
|
<% if CurrentUser.is_moderator? %>
|
|
<%= link_to "Edit", edit_ban_path(ban) %>
|
|
| <%= link_to "Delete", ban_path(ban), :method => :delete, :remote => true %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= numbered_paginator(@bans) %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "secondary_links" %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Bans - <%= Danbooru.config.app_name %>
|
|
<% end %>
|