X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/26698d6d267ab410d082a9b774b3ad5f9dc86b05..536dee8fc7f28ab2fc10a9e0873f33b649ad424f:/app/views/users/show.html.erb
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 1dd84edea..5e7883799 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -25,19 +25,19 @@
<%= link_to t(".my comments"), :controller => "diary_entries", :action => "comments", :display_name => current_user.display_name %>
- <%= link_to t(".my settings"), :controller => "users", :action => "account", :display_name => current_user.display_name %>
+ <%= link_to t(".my settings"), user_account_path(current_user) %>
<% if current_user.blocks.exists? %>
- <%= link_to t(".blocks on me"), :controller => "user_blocks", :action => "blocks_on", :display_name => current_user.display_name %>
+ <%= link_to t(".blocks on me"), user_blocks_on_path(current_user) %>
<%= number_with_delimiter(current_user.blocks.active.size) %>
<% end %>
<% if can?(:create, UserBlock) and current_user.blocks_created.exists? %>
- <%= link_to t(".blocks by me"), :controller => "user_blocks", :action => "blocks_by", :display_name => current_user.display_name %>
+ <%= link_to t(".blocks by me"), user_blocks_by_path(current_user) %>
<%= number_with_delimiter(current_user.blocks_created.active.size) %>
<% end %>
@@ -84,21 +84,21 @@
<% if @user.blocks.exists? %>
- <%= link_to t(".block_history"), :controller => "user_blocks", :action => "blocks_on", :display_name => @user.display_name %>
+ <%= link_to t(".block_history"), user_blocks_on_path(@user) %>
<%= number_with_delimiter(@user.blocks.active.size) %>
<% end %>
<% if @user.moderator? and @user.blocks_created.exists? %>
- <%= link_to t(".moderator_history"), :controller => "user_blocks", :action => "blocks_by", :display_name => @user.display_name %>
+ <%= link_to t(".moderator_history"), user_blocks_by_path(@user) %>
<%= number_with_delimiter(@user.blocks_created.active.size) %>
<% end %>
<% if can?(:create, UserBlock) %>
- <%= link_to t(".create_block"), :controller => "user_blocks", :action => "new", :display_name => @user.display_name %>
+ <%= link_to t(".create_block"), new_user_block_path(@user) %>
<% end %>