Skip to content
Snippets Groups Projects
Commit b3df59a3 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #59187 add link to support in admin front nav

parent 9e212331
Branches
Tags
2 merge requests!2365Dev#59187 explo redmine pouvoir uploader des fichiers dans les tickets back office,!2357Dev#59187 explo redmine pouvoir uploader des fichiers dans les tickets back office
Pipeline #2598 failed with stage
in 20 minutes and 55 seconds
......@@ -67,15 +67,26 @@ class ZendAfi_View_Helper_Admin_FrontNav extends ZendAfi_View_Helper_BaseHelper
protected function _myAccount() {
$id = Class_Users::getIdentity()->getId();
$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'])),
$redmine,
$this->_tag('li', $this->view->tagAnchor($this->view->url(['module' => 'admin',
'controller' => 'auth',
'action' => 'logout'], null, true),
$this->_('Se déconnecter')))];
return $this->_tag('div',
$this->view->tagAnchor(['module' => 'admin',
'controller' => 'users',
'action' => 'edit',
'id' => $id],
$this->_('Utilisateur courant : %s', Class_Users::getNomAff($id)),
['title' => $this->_('Accéder à la page de modification de mon compte administrateur'),
'data-popup' => 'true']),
['class' => 'admin_menu_title']);
$this->_('Utilisateur courant'),
['class' => 'admin_menu_title'])
. $this->_tag('ul', implode($anchors));
}
......@@ -227,6 +238,15 @@ class ZendAfi_View_Helper_Admin_FrontNav extends ZendAfi_View_Helper_BaseHelper
'home')),
['title' => $this->_('Accéder à l\'interface d\'administration')])];
if(Class_AdminVar::isRedmineEnabled())
$links [] = $this->view->tagAnchor($this->view->url(['module' => 'admin',
'controller' => 'redmine',
'action' => 'index'], null, true),
Class_Admin_Skin::current()->renderMenuIconOn('redmine',
$this->view,
['alt' => 'redmine'])
. $this->_('Assistance (%d)', Class_WebService_Redmine_Workflow::current()->getNumberOfIssuesNotification()));
if($this->_isAllowed('cms', 'index'))
$links[] = $this->view->tagAnchor(Class_Url::absolute('/admin/cms/'),
$this->_('Articles') .
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment