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>
17 <%= link_to t(".reply_button"), message_reply_path(@message), :class => "btn btn-primary" %>
18 <%= link_to t(".unread_button"), message_mark_path(@message, :mark => "unread"), :method => "post", :class => "btn btn-primary" %>
19 <%= link_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "btn btn-primary" %>
20 <%= link_to t(".back"), inbox_messages_path, :class => "btn btn-link" %>
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>
38 <%= link_to t(".back"), outbox_messages_path, :class => "btn btn-link" %>