X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/be11f2075e8bbde0a1e0640fd254c64ee0c94f25..f01cbc68c286b947d7b4e9971a518b26051a3ef2:/app/views/users/show.html.erb
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 5a8c116c1..8ef7b5644 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -26,7 +26,7 @@
<%= number_with_delimiter(current_user.diary_entries.size) %>
- <%= link_to t(".my comments"), diary_comments_path(current_user) %>
+ <%= link_to t(".my comments"), user_diary_comments_path(current_user) %>
<%= number_with_delimiter(current_user.diary_comments.size) %>
@@ -78,12 +78,12 @@
<%= number_with_delimiter(@user.diary_entries.size) %>
- <%= link_to t(".comments"), diary_comments_path(@user) %>
+ <%= link_to t(".comments"), user_diary_comments_path(@user) %>
<%= number_with_delimiter(@user.diary_comments.size) %>
<% if current_user %>
- <% if current_user.friends_with?(@user) %>
+ <% if current_user.follows?(@user) %>
<%= link_to t(".unfollow"), follow_path(:display_name => @user.display_name), :method => :delete %>
<% else %>
<%= link_to t(".follow"), follow_path(:display_name => @user.display_name), :method => :post %>
@@ -161,50 +161,48 @@
- <% if can?(:set_status, User) || can?(:destroy, User) %>
+ <% if can?(:update, :user_status) %>