X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ba639159dd372c89bfd905299b64a37d1b3f5e74..8ba86337c3ec0666c367ec6d9bd3de07a07df8b5:/app/views/user/_contact.html.erb?ds=inline diff --git a/app/views/user/_contact.html.erb b/app/views/user/_contact.html.erb index d720353ee..a13b2c50a 100644 --- a/app/views/user/_contact.html.erb +++ b/app/views/user/_contact.html.erb @@ -28,14 +28,15 @@ <%= t'changeset.changeset.no_edits' %> <% end %> + <%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => contact.display_name %> | <% if @user.is_friends_with?(contact) %> - <%= link_to t('user.view.remove as friend'), :controller => 'user', :action => 'remove_friend', :display_name => contact.display_name, :referer => request.request_uri %> + <%= link_to t('user.view.remove as friend'), remove_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %> <% else %> - <%= link_to t('user.view.add as friend'), :controller => 'user', :action => 'make_friend', :display_name => contact.display_name, :referer => request.request_uri %> + <%= link_to t('user.view.add as friend'), make_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %> <% end %>