diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b481e91..b166145 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1140,10 +1140,10 @@ module ApplicationHelper end def usermenu_logged_in - (_('Welcome, %s') % link_to('%{login}', '/%{login}', :id => "homepage-link", :title => _('Go to your homepage'))) + + (_('Welcome, %s') % link_to('{login}', '/{login}', :id => "homepage-link", :title => _('Go to your homepage'))) + usermenu_from_environment_features + link_to('' + _('Administration') + '', { :controller => 'admin_panel', :action => 'index' }, :id => "controlpanel", :title => _("Configure the environment"), :class => 'admin-link', :style => 'display: none') + - link_to('' + _('Control panel') + '', '/myprofile/%{login}', :id => "controlpanel", :title => _("Configure your personal account and content")) + + link_to('' + _('Control panel') + '', '/myprofile/{login}', :id => "controlpanel", :title => _("Configure your personal account and content")) + link_to('' + _('Logout') + '', { :controller => 'account', :action => 'logout'} , :id => "logout", :title => _("Leave the system")) end diff --git a/app/views/blocks/login_block.rhtml b/app/views/blocks/login_block.rhtml index 25c639d..c1a3bb9 100644 --- a/app/views/blocks/login_block.rhtml +++ b/app/views/blocks/login_block.rhtml @@ -1,8 +1,8 @@