Index: app/controllers/my_controller.rb =================================================================== --- app/controllers/my_controller.rb (revision 2099) +++ app/controllers/my_controller.rb (working copy) @@ -74,6 +74,11 @@ @notification_option = @user.mail_notification? ? 'all' : (@user.notified_projects_ids.empty? ? 'none' : 'selected') end + def show_account + @user = User.current + redirect_to :controller => 'account', :action => 'show', :id => @user.id + end + # Manage user's password def password @user = User.current Index: app/views/layouts/base.rhtml =================================================================== --- app/views/layouts/base.rhtml (revision 2099) +++ app/views/layouts/base.rhtml (working copy) @@ -24,7 +24,7 @@
<%= render_menu :account_menu -%>
- <%= content_tag('div', "#{l(:label_logged_as)} #{User.current.login}", :id => 'loggedas') if User.current.logged? %> + <%= content_tag('div', "#{l(:label_logged_as)} #{link_to User.current.login, show_my_account_path}", :id => 'loggedas') if User.current.logged? %> <%= render_menu :top_menu -%> Index: config/routes.rb =================================================================== --- config/routes.rb (revision 2099) +++ config/routes.rb (working copy) @@ -14,6 +14,7 @@ map.home '', :controller => 'welcome' map.signin 'login', :controller => 'account', :action => 'login' map.signout 'logout', :controller => 'account', :action => 'logout' + map.show_my_account 'my/account/show', :controller => 'my', :action => 'show_account' map.connect 'wiki/:id/:page/:action', :controller => 'wiki', :page => nil map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow'