1 <div class='text-content'>
2 <% if @user == @message.recipient %>
4 <h2><%= h(@message.title) %></h2>
6 <div class='info-line'>
7 <%= user_thumbnail_tiny @message.sender %>
8 <%= link_to h(@message.sender.display_name), :controller => 'user', :action => 'view', :display_name => @message.sender.display_name %></td>
10 <%= l @message.sent_on, :format => :friendly %>
11 <%= button_to t('message.read.reply_button'), :controller => 'message', :action => 'reply', :message_id => @message.id %>
12 <%= button_to t('message.read.unread_button'), :controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread' %>
16 <%= @message.body.to_html %></td>
18 <%= link_to t('message.read.back_to_inbox'), :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>
22 <h2><%= h(@message.title) %></h2>
24 <div class='info-line'>
25 <%= user_thumbnail_tiny @message.recipient %>
26 <%= link_to h(@message.recipient.display_name), :controller => 'user', :action => 'view', :display_name => @message.recipient.display_name %></td>
28 <%= l @message.sent_on, :format => :friendly %>
32 <%= @message.body.to_html %></td>
34 <%= link_to t('message.read.back_to_outbox'), :controller => 'message', :action => 'outbox', :display_name => @user.display_name %>