This commit is contained in:
albert
2012-01-15 13:35:49 -05:00
parent f1c5c57687
commit bb31555035
2 changed files with 18 additions and 18 deletions

View File

@@ -18,8 +18,10 @@
<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 %>
<% 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 %>