]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/messages/show.html.erb
Make the back button link to the inbox when reading received messages
[rails.git] / app / views / messages / show.html.erb
index 8ad5af9ddac518207104718425245d4c622d00d0..ea4f5e40df5e2f0473cf4cdc49ba7c9f41b3ca35 100644 (file)
@@ -17,6 +17,8 @@
     <%= button_to t(".reply_button"), message_reply_path(@message), :class => "reply-button" %>
     <%= button_to t(".unread_button"), message_mark_path(@message, :mark => "unread"), :class => "mark-unread-button" %>
     <%= button_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "destroy-button" %>
+    <%= link_to t(".back"), inbox_messages_path, :class => "button deemphasize" %>
+  </div>
 
 <% else %>
 
@@ -33,8 +35,7 @@
   <div class="richtext"><%= @message.body.to_html %></div>
 
   <div class='message-buttons buttons'>
+    <%= link_to t(".back"), outbox_messages_path, :class => "button deemphasize" %>
+  </div>
 
 <% end %>
-
-  <%= link_to t(".back"), outbox_messages_path, :class => "button deemphasize" %>
-  </div>