replace old user links with new format

This commit is contained in:
Toks
2013-04-04 23:16:28 -04:00
parent f1b5f83a3e
commit 8b33cac661
30 changed files with 38 additions and 38 deletions

View File

@@ -14,7 +14,7 @@
<tbody>
<% @bans.each do |ban| %>
<tr id="ban-<%= ban.id %>">
<td><%= link_to(ban.user.name, user_path(ban.user_id), { :class => ban.user.level_class }) %></td>
<td><%= link_to_user(ban.user) %></td>
<td><%= ban.expires_at %></td>
<td><%= ban.reason %></td>
<td>

View File

@@ -2,7 +2,7 @@
<div class="show">
<h1>Show Ban</h1>
<ul>
<li><strong>User</strong>: <%= link_to(@ban.user.name, user_path(@ban.user_id), { :class => @ban.user.level_class }) %></li>
<li><strong>User</strong>: <%= link_to_user(@ban.user) %></li>
<li><strong>Expires</strong>: <%= compact_time @ban.expires_at %></li>
<li><strong>Reason</strong>: <%= @ban.reason %></li>
</ul>