]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/users/show.html.erb
Merge pull request #5437 from AntonKhorev/user-status-resource
[rails.git] / app / views / users / show.html.erb
index 571976ee3d44d7c6cf8a43decc205b3a8f2aef58..76bedf60e61af3c4bef491c03601dca0387b4318 100644 (file)
@@ -84,9 +84,9 @@
             <% if current_user %>
               <li>
                 <% if current_user.friends_with?(@user) %>
-                  <%= link_to t(".remove as friend"), remove_friend_path(:display_name => @user.display_name), :method => :post %>
+                  <%= link_to t(".unfollow"), follow_path(:display_name => @user.display_name), :method => :delete %>
                 <% else %>
-                  <%= link_to t(".add as friend"), make_friend_path(:display_name => @user.display_name), :method => :post %>
+                  <%= link_to t(".follow"), follow_path(:display_name => @user.display_name), :method => :post %>
                 <% end %>
               </li>
             <% end %>