1 <% if @user == @message.recipient %>
3 <h2><%= t'message.read.reading_your_messages' %></h2>
7 <th class="fieldName"><%= t'message.read.from' %></th>
8 <td><%= link_to h(@message.sender.display_name), :controller => 'user', :action => 'view', :display_name => @message.sender.display_name %></td>
9 <td rowspan="4" valign="top"><%= user_thumbnail @message.sender %></td>
12 <th class="fieldName"><%= t'message.read.subject' %></th>
13 <td><%= h(@message.title) %></td>
17 <th class="fieldName"><%= t'message.read.date' %></th>
18 <td><%= l @message.sent_on, :format => :friendly %></td>
23 <td><%= htmlize(@message.body) %></td>
32 <td><%= button_to t('message.read.reply_button'), :controller => 'message', :action => 'reply', :message_id => @message.id %></td>
33 <td><%= button_to t('message.read.unread_button'), :controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread' %></td>
34 <td><%= link_to t('message.read.back_to_inbox'), :controller => 'message', :action => 'inbox', :display_name => @user.display_name %></td>
40 <h2><%= t'message.read.reading_your_sent_messages' %></h2>
44 <th class="fieldName"><%= t'message.read.to' %></th>
45 <td><%= link_to h(@message.recipient.display_name), :controller => 'user', :action => 'view', :display_name => @message.recipient.display_name %></td>
46 <td rowspan="4" valign="top"><%= user_thumbnail @message.recipient %></td>
49 <th class="fieldName"><%= t'message.read.subject' %></th>
50 <td><%= h(@message.title) %></td>
54 <th class="fieldName"><%= t'message.read.date' %></th>
55 <td><%= l @message.sent_on, :format => :friendly %></td>
60 <td><%= htmlize(@message.body) %></td>
69 <td><%= link_to t('message.read.back_to_outbox'), :controller => 'message', :action => 'outbox', :display_name => @user.display_name %></td>