]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/dashboards/_contact.html.erb
Localisation updates from https://translatewiki.net.
[rails.git] / app / views / dashboards / _contact.html.erb
index 41d0a24f29beea2259baef3e91d1b24e11959a5e..8e78524decb463730cfc2f863151aba6639b8fa1 100644 (file)
       <ul class='clearfix text-body-secondary'>
         <li><%= link_to t("users.show.send message"), new_message_path(contact) %></li>
         <li>
-          <% if current_user.friends_with?(contact) %>
-            <%= link_to t("users.show.unfollow"), remove_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
+          <% if current_user.follows?(contact) %>
+            <%= link_to t("users.show.unfollow"), follow_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :delete %>
           <% else %>
-            <%= link_to t("users.follow"), make_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
+            <%= link_to t("users.show.follow"), follow_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
           <% end %>
         </li>
       </ul>