1 <% if @user == @message.recipient %>
3 <h2><%= t'message.read.reading_your_messages' %></h2>
7 <th align="right"><%= t'message.read.from' %></th>
9 <% if @message.sender.image %>
10 <%= image_tag url_for_file_column(@message.sender, "image") %>
13 <%= link_to h(@message.sender.display_name), :controller => 'user', :action => 'view', :display_name => @message.sender.display_name %></td>
16 <th align="right"><%= t'message.read.subject' %></th>
17 <td><%= h(@message.title) %></td>
20 <th align="right"><%= t'message.read.date' %></th>
21 <td><%= l @message.sent_on %></td>
25 <td><%= htmlize(@message.body) %></td>
33 <td><%= button_to t('message.read.reply_button'), :controller => 'message', :action => 'reply', :message_id => @message.id %></td>
34 <td><%= button_to t('message.read.unread_button'), :controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread' %></td>
35 <td><%= link_to t('message.read.back_to_inbox'), :controller => 'message', :action => 'inbox', :display_name => @user.display_name %></td>
41 <h2><%= t'message.read.reading_your_sent_messages' %></h2>
45 <th align="right"><%= t'message.read.to' %></th>
46 <td><%= link_to h(@message.recipient.display_name), :controller => 'user', :action => 'view', :display_name => @message.recipient.display_name %></td>
49 <th align="right"><%= t'message.read.subject' %></th>
50 <td><%= h(@message.title) %></td>
53 <th align="right"><%= t'message.read.date' %></th>
54 <td><%= l @message.sent_on %></td>
58 <td><%= htmlize(@message.body) %></td>
66 <td><%= link_to t('message.read.back_to_outbox'), :controller => 'message', :action => 'outbox', :display_name => @user.display_name %></td>