From bfba09f0a48e2742ac7b5d015a16065d5f45d355 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 30 Sep 2014 16:04:00 +0300 Subject: [PATCH] Show username in log out link --- app/views/layouts/application.haml | 2 +- app/views/layouts/client.haml | 2 +- config/locales/en.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/application.haml b/app/views/layouts/application.haml index 62ec5aab2..035e4bfc3 100644 --- a/app/views/layouts/application.haml +++ b/app/views/layouts/application.haml @@ -44,7 +44,7 @@ %li = link_to t('shared.users'), admin_users_path %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 .container - display = (flash.empty?) ? 'none' : 'block' diff --git a/app/views/layouts/client.haml b/app/views/layouts/client.haml index bcf26e9c5..355fd7fee 100644 --- a/app/views/layouts/client.haml +++ b/app/views/layouts/client.haml @@ -53,7 +53,7 @@ - next if x == current_registrar %li = 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 .container - display = (flash.empty?) ? 'none' : 'block' diff --git a/config/locales/en.yml b/config/locales/en.yml index 65eab6e3c..bb844100b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -229,7 +229,7 @@ en: action: 'Action' edit: 'Edit' save: 'Save' - log_out: 'Log out' + log_out: 'Log out (%{user})' system: 'System' settings: 'Settings' domains: 'Domains'