Ensure the message title shows in the heading for both sent and received messages
I'm not sure why they were ever different.
This commit is contained in:
parent
d89c4f887c
commit
e073f93bbd
1 changed files with 5 additions and 10 deletions
|
@ -1,8 +1,8 @@
|
|||
<% if current_user == @message.recipient %>
|
||||
<% content_for :heading do %>
|
||||
<h2><%= @message.title %></h2>
|
||||
<% end %>
|
||||
<% content_for :heading do %>
|
||||
<h2><%= @message.title %></h2>
|
||||
<% end %>
|
||||
|
||||
<% if current_user == @message.recipient %>
|
||||
<div class='info-line clearfix'>
|
||||
<%= user_thumbnail_tiny @message.sender %>
|
||||
<%= link_to @message.sender.display_name, user_path(@message.sender) %></td>
|
||||
|
@ -11,7 +11,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="richtext"><%= @message.body.to_html %></div>
|
||||
<div class="richtext text-break"><%= @message.body.to_html %></div>
|
||||
|
||||
<div>
|
||||
<%= link_to t(".reply_button"), message_reply_path(@message), :class => "btn btn-primary" %>
|
||||
|
@ -19,11 +19,7 @@
|
|||
<%= link_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "btn btn-primary" %>
|
||||
<%= link_to t(".back"), inbox_messages_path, :class => "btn btn-link" %>
|
||||
</div>
|
||||
|
||||
<% else %>
|
||||
|
||||
<h2><%= @message.title %></h2>
|
||||
|
||||
<div class='info-line clearfix'>
|
||||
<%= user_thumbnail_tiny @message.recipient %>
|
||||
<%= link_to @message.recipient.display_name, user_path(@message.recipient) %></td>
|
||||
|
@ -37,5 +33,4 @@
|
|||
<div>
|
||||
<%= link_to t(".back"), outbox_messages_path, :class => "btn btn-link" %>
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue