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 %>
14 <div class="richtext"><%= @message.body.to_html %></div>
16 <div class='message-buttons buttons'>
17 <%= button_to t('message.read.reply_button'), {:controller => 'message', :action => 'reply', :message_id => @message.id}, :class => 'reply-button' %>
18 <%= button_to t('message.read.unread_button'), {:controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread'}, :class => 'mark-unread-button' %>
22 <h2><%= h(@message.title) %></h2>
24 <div class='info-line clearfix'>
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 <div class="richtext"><%= @message.body.to_html %></div>
34 <div class='message-buttons buttons'>
38 <%= link_to t('message.read.back'), {:controller => 'message', :action => 'outbox', :display_name => @user.display_name }, :class => "button deemphasize" %>