Use user_account_path for links to settings page
Much easier to read than having to be explicit about controllers etc
This commit is contained in:
parent
ebb25a095c
commit
d797de4317
5 changed files with 10 additions and 10 deletions
|
@ -95,7 +95,7 @@
|
|||
<span class='count-number'><%= number_with_delimiter(current_user.new_messages.size) %></span>
|
||||
<% end %>
|
||||
<%= link_to t("users.show.my profile"), user_path(current_user), :class => "dropdown-item" %>
|
||||
<%= link_to t("users.show.my settings"), { :controller => "users", :action => "account", :display_name => current_user.display_name }, { :class => "dropdown-item" } %>
|
||||
<%= link_to t("users.show.my settings"), user_account_path(current_user), :class => "dropdown-item" %>
|
||||
<%= link_to t("users.show.my_preferences"), preferences_path, :class => "dropdown-item" %>
|
||||
<div class="dropdown-divider"></div>
|
||||
<%= yield :greeting %>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<p><%= t "layouts.osm_read_only" %></p>
|
||||
<% elsif !current_user.data_public? %>
|
||||
<p><%= t ".not_public" %></p>
|
||||
<p><%= t ".not_public_description_html", :user_page => (link_to t(".user_page_link"), :controller => "users", :action => "account", :display_name => current_user.display_name, :anchor => "public") %></p>
|
||||
<p><%= t ".not_public_description_html", :user_page => (link_to t(".user_page_link"), user_account_path(current_user, :anchor => "public")) %></p>
|
||||
<p><%= t ".anon_edits_html", :link => link_to(t(".anon_edits_link_text"), t(".anon_edits_link")) %></p>
|
||||
<% else %>
|
||||
<%= render :partial => preferred_editor %>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<%= link_to t(".my comments"), :controller => "diary_entries", :action => "comments", :display_name => current_user.display_name %>
|
||||
</li>
|
||||
<li>
|
||||
<%= 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) %>
|
||||
</li>
|
||||
|
||||
<% if current_user.blocks.exists? %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue