X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0bbdadd727a37ee71d4a8c89b50ce2060d6a6240..9778714046ce226e076e2075a826a81f5ea983af:/app/views/users/show.html.erb diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index dac0ff5b5..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 %> @@ -165,6 +165,12 @@
    <%= @user.description.to_html %>
    + <% if current_user and @user.id == current_user.id %> +
    + <%= link_to t(".edit_profile"), edit_profile_path, :class => "btn btn-outline-primary" %> +
    + <% end %> + <% if current_user and current_user.administrator? -%> @@ -185,7 +191,7 @@
    <% if @user.home_lat.nil? or @user.home_lon.nil? %>
    -

    <%= t(".if_set_location_html", :settings_link => (link_to t(".settings_link_text"), :controller => "users", :action => "account", :display_name => current_user.display_name)) %>

    +

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

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