X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d797de431716252ac03ad390b3233c91fa3c50b2..6ab522b2b35b565ff6f4458657dec70aa073c177:/app/views/users/show.html.erb diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 61a775c51..caa7730cb 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -22,7 +22,7 @@ <%= 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"), user_account_path(current_user) %> @@ -30,14 +30,14 @@ <% 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 %> @@ -191,7 +191,7 @@
    <% if @user.home_lat.nil? or @user.home_lon.nil? %>
    -

    <%= t(".set_location_html", :edit_profile_url => edit_profile_path) %>

    +

    <%= t(".no_home_location_html", :edit_profile_link => link_to(t(".edit_your_profile"), edit_profile_path)) %>

    <% else %> <% content_for :head do %>