]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/messages/show.html.erb
Convert remaining heading titles to use h1
[rails.git] / app / views / messages / show.html.erb
index 33156f51f519171a260452fe23ac75c50aaa651b..9ade68121aab29d9e7bac8f9bdcde705c87ac81c 100644 (file)
@@ -1,5 +1,5 @@
 <% content_for :heading do %>
-  <h2><%= @message.title %></h2>
+  <h1><%= @message.title %></h1>
 <% end %>
 
 <% if current_user == @message.recipient %>
@@ -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 %>