1 <% if current_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), user_path(@message.sender) %></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('.reply_button'), {:controller => 'message', :action => 'reply', :message_id => @message.id}, :class => 'reply-button' %>
18 <%= button_to t('.unread_button'), {:controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread'}, :class => 'mark-unread-button' %>
19 <%= button_to t('.delete_button'), {:controller => 'message', :action => 'delete', :message_id => @message.id}, :class => 'delete-button' %>
23 <h2><%= h(@message.title) %></h2>
25 <div class='info-line clearfix'>
26 <%= user_thumbnail_tiny @message.recipient %>
27 <%= link_to h(@message.recipient.display_name), user_path(@message.recipient) %></td>
29 <%= l @message.sent_on, :format => :friendly %>
33 <div class="richtext"><%= @message.body.to_html %></div>
35 <div class='message-buttons buttons'>
39 <%= link_to t('.back'), {:controller => 'message', :action => 'outbox', :display_name => current_user.display_name }, :class => "button deemphasize" %>