Ensure message destroy button has danger colour when showing the message, and add button to show page when viewing sent messages
This commit is contained in:
parent
e073f93bbd
commit
0ab9359f9f
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
<div>
|
||||
<%= link_to t(".reply_button"), message_reply_path(@message), :class => "btn btn-primary" %>
|
||||
<%= link_to t(".unread_button"), message_mark_path(@message, :mark => "unread"), :method => "post", :class => "btn btn-primary" %>
|
||||
<%= link_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "btn btn-primary" %>
|
||||
<%= link_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "btn btn-danger" %>
|
||||
<%= link_to t(".back"), inbox_messages_path, :class => "btn btn-link" %>
|
||||
</div>
|
||||
<% else %>
|
||||
|
@ -31,6 +31,7 @@
|
|||
<div class="richtext text-break"><%= @message.body.to_html %></div>
|
||||
|
||||
<div>
|
||||
<%= link_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "btn btn-danger" %>
|
||||
<%= link_to t(".back"), outbox_messages_path, :class => "btn btn-link" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue