X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/700bf132792e14dfd692f65e66c5526f1ebbd22f..c07bb0745d1ebc58637f8b46f8615dca03fada2d:/app/views/users/show.html.erb
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index be25df193..caa7730cb 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -22,22 +22,22 @@
<%= number_with_delimiter(current_user.diary_entries.size) %>
- <%= link_to t(".my comments"), :controller => "diary_entries", :action => "comments", :display_name => current_user.display_name %>
+ <%= link_to t(".my comments"), diary_comments_path(current_user) %>
- <%= 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 %>
@@ -70,7 +70,7 @@
<%= number_with_delimiter(@user.diary_entries.size) %>
- <%= link_to t(".comments"), :controller => "diary_entries", :action => "comments", :display_name => @user.display_name %>
+ <%= link_to t(".comments"), diary_comments_path(@user) %>
<% if current_user and current_user.is_friends_with?(@user) %>
@@ -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 %>