1 <% if @user == @message.recipient %>
2 <% content_for :heading do %>
3 <h2><%= h(@message.title) %></h2>
6 <div class='info-line clearfix'>
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 %>
12 <%= button_to t('message.read.reply_button'), :controller => 'message', :action => 'reply', :message_id => @message.id %>
13 <%= button_to t('message.read.unread_button'), :controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread' %>
18 <div class="richtext"><%= @message.body.to_html %></div>
20 <%= link_to t('message.read.back_to_inbox'), :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>
24 <h2><%= h(@message.title) %></h2>
26 <div class='info-line clearfix'>
27 <%= user_thumbnail_tiny @message.recipient %>
28 <%= link_to h(@message.recipient.display_name), :controller => 'user', :action => 'view', :display_name => @message.recipient.display_name %></td>
30 <%= l @message.sent_on, :format => :friendly %>
34 <div class="richtext"><%= @message.body.to_html %></div>
36 <%= link_to t('message.read.back_to_outbox'), :controller => 'message', :action => 'outbox', :display_name => @user.display_name %>