]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/dashboards/_contact.html.erb
Merge remote-tracking branch 'upstream/pull/5612'
[rails.git] / app / views / dashboards / _contact.html.erb
index 0b3b42fb507e11e2318d6f44f5c391f0c488f04e..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) %>
+          <% 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"), follow_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>