users: add /profile page (fix #4151).
* Add /profile, /profile.json endpoints. * Make "My Account" link to /profile. * Add 'User ID' field to profile page.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<% if CurrentUser.is_anonymous? %>
|
||||
<%= nav_link_to("Sign in", new_session_path) %>
|
||||
<% else %>
|
||||
<%= nav_link_to("My Account #{CurrentUser.dmail_count}", user_path(CurrentUser.user)) %>
|
||||
<%= nav_link_to("My Account #{CurrentUser.dmail_count}", profile_path) %>
|
||||
<% end %>
|
||||
<%= nav_link_to("Posts", posts_path) %>
|
||||
<%= nav_link_to("Comments", comments_path(:group_by => "post")) %>
|
||||
|
||||
Reference in New Issue
Block a user