Skip to content
Snippets Groups Projects
Commit 7f77349d authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'undefined' into...

Merge branch 'undefined' into 'hotline#140745_administration_support_installation_en_sous_repertoire'

Replace FrontNavEntries.php

See merge request !4176
parents 6d3a703e b412cc18
Branches
Tags
2 merge requests!4187Replace FrontNavEntries.php,!4176Replace FrontNavEntries.php
Pipeline #14600 canceled with stage
in 7 minutes and 44 seconds
......@@ -55,7 +55,7 @@ class ZendAfi_View_Helper_Admin_FrontNavEntries extends ZendAfi_View_Helper_Base
protected function _adminLinks() {
$links = [$this->_item('/admin',
$links = [$this->_item(Class_Url::absolute('/admin'),
$this->_('Accès pro.'),
$this->_('Accéder à l\'interface d\'administration'),
'home')];
......@@ -67,26 +67,26 @@ class ZendAfi_View_Helper_Admin_FrontNavEntries extends ZendAfi_View_Helper_Base
'redmine');
if ($this->_isAllowed('cms', 'index'))
$links[] = $this->_item('/admin/cms/',
$links[] = $this->_item(Class_Url::absolute('/admin/cms/'),
$this->_('Articles'),
$this->_('Accéder aux articles dans l\'interface d\'administration'),
'articles');
if ($this->_isAllowed('catalogue', 'index'))
$links[] = $this->_item('/admin/catalogue/',
$links[] = $this->_item(Class_Url::absolute('/admin/catalogue/'),
$this->_('Domaines'),
$this->_('Accéder aux domaines dans l\'interface d\'administration'),
'domains');
if ($this->_isAllowed('file-manager', 'index'))
$links[] = $this->_item('/admin/file-manager/',
$links[] = $this->_item(Class_Url::absolute('/admin/file-manager/'),
$this->_('Explorateur de fichiers'),
$this->_('Accéder à l\'explorateur de fichiers dans un nouvel onglet'),
'filebrowser',
['target' => '_blank']);
if ($this->_isAllowed('users', 'index'))
$links[] = $this->_item('/admin/users',
$links[] = $this->_item(Class_Url::absolute('/admin/users'),
$this->_('Utilisateurs'),
$this->_('Accéder aux utilisateurs dans l\'interface d\'administration'),
'users');
......@@ -120,7 +120,7 @@ class ZendAfi_View_Helper_Admin_FrontNavEntries extends ZendAfi_View_Helper_Base
protected function _itemPopup($url, $label, $title, $icon, $attribs=[]) {
return $this->_item($url, $label, $title, $icon,
return $this->_item(Class_Url::absolute($url), $label, $title, $icon,
array_merge(['data-popup' => 'true'], $attribs));
}
......@@ -145,7 +145,7 @@ class ZendAfi_View_Helper_Admin_FrontNavEntries extends ZendAfi_View_Helper_Base
&& Class_Users::isCurrentUserAllowedToEditProfile($this->_profile))
$actions = $this->_profileActions($actions);
$actions []= $this->_item('/admin/index/clearcache/',
$actions []= $this->_item(Class_Url::absolute('/admin/index/clearcache/'),
$this->_('Vider le cache'),
$this->_('Vider le cache de Bokeh'),
'delete');
......@@ -273,7 +273,7 @@ class ZendAfi_View_Helper_Admin_FrontNavEntries extends ZendAfi_View_Helper_Base
'showAmberIDE();$("#amber").show();',
'$("#amber").hide();');
$tools[] = $this->_item('/admin/profil/export/id_profil/' . $this->_profile_id,
$tools[] = $this->_item(Class_Url::absolute('/admin/profil/export/id_profil/') . $this->_profile_id,
$this->_('Exporter le profil courant'),
$this->_('Exporter le profil "%s" au format JSON',
$this->_profile_label),
......
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