1 <% content_for :heading do %>
2 <h2><%= @message.title %></h2>
5 <% if current_user == @message.recipient %>
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 text-break"><%= @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-danger" %>
20 <%= link_to t(".back"), inbox_messages_path, :class => "btn btn-link" %>
23 <div class='info-line clearfix'>
24 <%= user_thumbnail_tiny @message.recipient %>
25 <%= link_to @message.recipient.display_name, user_path(@message.recipient) %></td>
27 <%= l @message.sent_on, :format => :friendly %>
31 <div class="richtext text-break"><%= @message.body.to_html %></div>
34 <%= link_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "btn btn-danger" %>
35 <%= link_to t(".back"), outbox_messages_path, :class => "btn btn-link" %>