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

@@ -21,8 +21,8 @@
<% @dmails.each do |dmail| %>
<tr class="read-<%= dmail.is_read? %>">
<td><%= compact_time(dmail.created_at) %></td>
<td><%= link_to dmail.from_name, user_path(dmail.from), { :class => dmail.from.level_class } %></td>
<td><%= link_to dmail.to_name, user_path(dmail.to), { :class => dmail.to.level_class } %></td>
<td><%= link_to_user dmail.from %></td>
<td><%= link_to_user dmail.to %></td>
<td><%= link_to dmail.title, dmail_path(dmail) %></td>
</tr>
<% end %>

View File

@@ -5,8 +5,8 @@
<h2><%= @dmail.title %></h2>
<ul style="margin-bottom: 1em;">
<li><strong>Sender</strong>: <%= link_to @dmail.from_name, user_path(@dmail.from_id), { :class => @dmail.from.level_class } %></li>
<li><strong>Recipient</strong>: <%= link_to @dmail.to_name, user_path(@dmail.to_id), { :class => @dmail.to.level_class } %></li>
<li><strong>Sender</strong>: <%= link_to_user @dmail.from %></li>
<li><strong>Recipient</strong>: <%= link_to_user @dmail.to %></li>
<li><strong>Date</strong>: <%= compact_time(@dmail.created_at) %></li>
</ul>