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'), reply_message_path(@message), :class => 'reply-button' %>
18 <%= button_to t('.unread_button'), mark_message_path(@message, :mark => 'unread'), :class => 'mark-unread-button' %>
19 <%= button_to t('.delete_button'), delete_message_path(@message), :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'), outbox_path(current_user), :class => "button deemphasize" %>