From dc416789e800bc3a0030846bd38cc2e6733f2b7c Mon Sep 17 00:00:00 2001 From: gloas <gloas@afi-sa.fr> Date: Fri, 29 Sep 2017 16:30:27 +0200 Subject: [PATCH] dev #59187 fix accessibility --- .../ZendAfi/View/Helper/Admin/FrontNav.php | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/library/ZendAfi/View/Helper/Admin/FrontNav.php b/library/ZendAfi/View/Helper/Admin/FrontNav.php index 6eecb90a1df..50ac3b126cc 100644 --- a/library/ZendAfi/View/Helper/Admin/FrontNav.php +++ b/library/ZendAfi/View/Helper/Admin/FrontNav.php @@ -67,15 +67,15 @@ class ZendAfi_View_Helper_Admin_FrontNav extends ZendAfi_View_Helper_BaseHelper protected function _myAccount() { $id = Class_Users::getIdentity()->getId(); - + $name = Class_Users::getNomAff($id); $anchors = [$this->_tag('li', $this->view->tagAnchor(['module' => 'admin', - 'controller' => 'users', - 'action' => 'edit', - 'id' => $id], - Class_Users::getNomAff($id), - ['title' => $this->_('Accéder à la page de modification de mon compte administrateur'), - 'data-popup' => 'true'])), + 'controller' => 'users', + 'action' => 'edit', + 'id' => $id], + $name, + ['title' => $this->_('Accéder à la page de modification de mon compte administrateur'), + 'data-popup' => 'true'])), $this->_tag('li', $this->view->tagAnchor($this->view->url(['module' => 'admin', 'controller' => 'auth', 'action' => 'logout'], null, true), @@ -83,7 +83,8 @@ class ZendAfi_View_Helper_Admin_FrontNav extends ZendAfi_View_Helper_BaseHelper . Class_Admin_Skin::current()->renderMenuIconOn('logout', $this->view, ['alt' => 'logout', - 'style' => 'filter: invert(1);'])))]; + 'style' => 'filter: invert(1);']), + ['title' => $this->_('Se déconnecter du compte : %s', $name)]))]; return $this->_tag('div', $this->_('Utilisateur courant'), @@ -248,7 +249,8 @@ class ZendAfi_View_Helper_Admin_FrontNav extends ZendAfi_View_Helper_BaseHelper Class_Admin_Skin::current()->renderMenuIconOn('redmine', $this->view, ['alt' => 'redmine']) - . $this->_('Assistance (%d)', Class_WebService_Redmine_Workflow::current()->getNumberOfIssuesNotification())); + . $this->_('Assistance (%d)', Class_WebService_Redmine_Workflow::current()->getNumberOfIssuesNotification()), + ['title' => $this->_('Accéder à l\'assistance')]); if($this->_isAllowed('cms', 'index')) $links[] = $this->view->tagAnchor(Class_Url::absolute('/admin/cms/'), -- GitLab