1 <% if current_user == @message.recipient %>
2 <% content_for :heading do %>
3 <h2><%= @message.title %></h2>
6 <div class='info-line clearfix'>
7 <%= user_thumbnail_tiny @message.sender %>
8 <%= link_to @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"), message_reply_path(@message), :class => "reply-button" %>
18 <%= button_to t(".unread_button"), message_mark_path(@message, :mark => "unread"), :class => "mark-unread-button" %>
19 <%= button_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "destroy-button" %>
20 <%= link_to t(".back"), inbox_messages_path, :class => "button deemphasize" %>
25 <h2><%= @message.title %></h2>
27 <div class='info-line clearfix'>
28 <%= user_thumbnail_tiny @message.recipient %>
29 <%= link_to @message.recipient.display_name, user_path(@message.recipient) %></td>
31 <%= l @message.sent_on, :format => :friendly %>
35 <div class="richtext"><%= @message.body.to_html %></div>
37 <div class='message-buttons buttons'>
38 <%= link_to t(".back"), outbox_messages_path, :class => "button deemphasize" %>