1 <% content_for :heading do %>
2 <h1><%= @message.title %></h1>
5 <div class='mb-3 border-bottom border-grey py-1 d-flex gap-1 flex-wrap'>
6 <% if current_user == @message.recipient %>
7 <%= user_thumbnail_tiny @message.sender %>
8 <%= link_to @message.sender.display_name, user_path(@message.sender) %>
10 <%= user_thumbnail_tiny @message.recipient %>
11 <%= link_to @message.recipient.display_name, user_path(@message.recipient) %>
13 <span class="ms-auto">
14 <%= l @message.sent_on, :format => :friendly %>
18 <div class="richtext text-break"><%= @message.body.to_html %></div>
21 <% if current_user == @message.recipient %>
22 <%= link_to t(".reply_button"), message_reply_path(@message), :class => "btn btn-primary" %>
23 <%= link_to t(".unread_button"), message_mark_path(@message, :mark => "unread"), :method => "post", :class => "btn btn-primary" %>
24 <%= link_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "btn btn-danger" %>
26 <%= link_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "btn btn-danger" %>
28 <%= link_to t(".back"), :back, :class => "btn btn-link" %>