X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2b7a48029bff06c190544f91c5969b09aeae552b..2de26d54ef22c5653f830d0ce4938df78d0ca0fd:/app/views/users/show.html.erb
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index efeac90bc..30245aded 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -26,11 +26,11 @@
<%= 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) %>
- <%= link_to t(".my settings"), edit_account_path %>
+ <%= link_to t(".my_account"), account_path %>
<% if current_user.blocks.exists? %>
@@ -78,15 +78,15 @@
<%= 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) %>
- <%= link_to t(".unfollow"), remove_friend_path(:display_name => @user.display_name), :method => :post %>
+ <% if current_user.follows?(@user) %>
+ <%= link_to t(".unfollow"), follow_path(:display_name => @user.display_name), :method => :delete %>
<% else %>
- <%= link_to t(".follow"), make_friend_path(:display_name => @user.display_name), :method => :post %>
+ <%= link_to t(".follow"), follow_path(:display_name => @user.display_name), :method => :post %>
<% end %>
<% end %>
@@ -161,50 +161,48 @@
- <% if can?(:set_status, User) || can?(:destroy, User) %>
+ <% if can?(:update, :user_status) %>