X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7a4115f090c6a6f923b2fe31b505982ac006e992..8f7f02b025f59db466fdb22ea3686cb6c5adc400:/app/views/users/show.html.erb diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 5e8398b16..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) %>
  • @@ -35,7 +35,7 @@ <% if current_user.blocks.exists? %>
  • - <%= link_to t(".blocks on me"), user_blocks_on_path(current_user) %> + <%= link_to t(".blocks on me"), user_received_blocks_path(current_user) %> <%= number_with_delimiter(current_user.blocks.active.size) %>
  • <% end %> @@ -78,22 +78,22 @@ <%= 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(".remove as friend"), 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(".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 %>
  • <% end %> <% if @user.blocks.exists? %>
  • - <%= link_to t(".block_history"), user_blocks_on_path(@user) %> + <%= link_to t(".block_history"), user_received_blocks_path(@user) %> <%= number_with_delimiter(@user.blocks.active.size) %>
  • <% end %> @@ -105,9 +105,9 @@ <% end %> - <% if can?(:revoke_all, UserBlock) and @user.blocks.active.exists? %> + <% if can?(:destroy, UserBlock) and @user.blocks.active.exists? %>
  • - <%= link_to t(".revoke_all_blocks"), revoke_all_user_blocks_path(@user) %> + <%= link_to t(".revoke_all_blocks"), edit_user_received_blocks_path(@user) %>
  • <% end %> @@ -161,50 +161,48 @@ - <% if can?(:set_status, User) || can?(:destroy, User) %> + <% if can?(:update, :user_status) %>