Show username in log out link

This commit is contained in:
Martin Lensment 2014-09-30 16:04:00 +03:00
parent 0a3e631d84
commit bfba09f0a4
3 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@
%li %li
= link_to t('shared.users'), admin_users_path = link_to t('shared.users'), admin_users_path
%ul.nav.navbar-nav.navbar-right %ul.nav.navbar-nav.navbar-right
%li= link_to t('shared.log_out'), '/logout' %li= link_to t('shared.log_out', user: current_user), '/logout'
/ /.nav-collapse / /.nav-collapse
.container .container
- display = (flash.empty?) ? 'none' : 'block' - display = (flash.empty?) ? 'none' : 'block'

View file

@ -53,7 +53,7 @@
- next if x == current_registrar - next if x == current_registrar
%li %li
= link_to x, switch_registrar_sessions_path(registrar_id: x) = link_to x, switch_registrar_sessions_path(registrar_id: x)
%li= link_to t('shared.log_out'), '/logout' %li= link_to t('shared.log_out', user: current_user), '/logout'
/ /.nav-collapse / /.nav-collapse
.container .container
- display = (flash.empty?) ? 'none' : 'block' - display = (flash.empty?) ? 'none' : 'block'

View file

@ -229,7 +229,7 @@ en:
action: 'Action' action: 'Action'
edit: 'Edit' edit: 'Edit'
save: 'Save' save: 'Save'
log_out: 'Log out' log_out: 'Log out (%{user})'
system: 'System' system: 'System'
settings: 'Settings' settings: 'Settings'
domains: 'Domains' domains: 'Domains'