X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f0e76d90add15e8bec6a4350f69f2a06f168574b..9f341430493cdaafb6ea9ce6ac29fc6af291d57c:/app/views/messages/show.html.erb diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index 29bf02cd8..99d6d0435 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -2,7 +2,7 @@

<%= @message.title %>

<% end %> -
+
<% if current_user == @message.recipient %> <%= user_thumbnail_tiny @message.sender %> <%= link_to @message.sender.display_name, @message.sender %> @@ -18,8 +18,8 @@
<%= @message.body.to_html %>
+ <%= link_to t(".reply_button"), message_reply_path(@message), :class => "btn btn-primary" %> <% if current_user == @message.recipient %> - <%= 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-danger" %> <% else %>