X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/95b919c5d1e33688b0841c7d38602372c2e4c4a3..50e5d49bc44181425cdfd798ab75ca108d1bf8a1:/app/views/messages/show.html.erb diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index d3147c969..ff403b099 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -20,7 +20,7 @@
<%= link_to t(".reply_button"), new_message_reply_path(@message), :class => "btn btn-primary" %> <% if current_user == @message.recipient %> - <%= link_to t(".unread_button"), message_mark_path(@message, :mark => "unread"), :method => "post", :class => "btn btn-primary" %> + <%= link_to t(".unread_button"), message_read_mark_path(@message), :method => "delete", :class => "btn btn-primary" %> <%= link_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "btn btn-danger" %> <% else %> <%= link_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "btn btn-danger" %>