|
| 1 | +<div class="dropdown"> |
| 2 | + <a href="#" class="dropdown-menu dropdown-menu-link-icon" style="display:flex;position:relative;align-items:center;flex-direction:row;"><?= $this->helper->dynamicAvatar->currentUserDynamic('avatar-inline') ?><i class="fa fa-caret-down"></i></a> |
| 3 | + <ul> |
| 4 | + <li class="no-hover"><strong><?= $this->text->e($this->user->getFullname()) ?></strong></li> |
| 5 | + <li> |
| 6 | + <?= $this->url->icon('tachometer', t('My dashboard'), 'DashboardController', 'show', array('user_id' => $this->user->getId())) ?> |
| 7 | + </li> |
| 8 | + <li> |
| 9 | + <?= $this->url->icon('home', t('My profile'), 'UserViewController', 'show', array('user_id' => $this->user->getId())) ?> |
| 10 | + </li> |
| 11 | + <li> |
| 12 | + <?= $this->url->icon('folder', t('Projects management'), 'ProjectListController', 'show') ?> |
| 13 | + </li> |
| 14 | + <?php if ($this->user->hasAccess('UserListController', 'show')): ?> |
| 15 | + <li> |
| 16 | + <?= $this->url->icon('user', t('Users management'), 'UserListController', 'show') ?> |
| 17 | + </li> |
| 18 | + <li> |
| 19 | + <?= $this->url->icon('group', t('Groups management'), 'GroupListController', 'index') ?> |
| 20 | + </li> |
| 21 | + <li> |
| 22 | + <?= $this->url->icon('cubes', t('Plugins'), 'PluginController', 'show') ?> |
| 23 | + </li> |
| 24 | + <li> |
| 25 | + <?= $this->url->icon('cog', t('Settings'), 'ConfigController', 'index') ?> |
| 26 | + </li> |
| 27 | + <?php endif ?> |
| 28 | + |
| 29 | + <?= $this->hook->render('template:header:dropdown') ?> |
| 30 | + |
| 31 | + <li> |
| 32 | + <i class="fa fa-fw fa-life-ring" aria-hidden="true"></i> |
| 33 | + <?= $this->url->doc(t('Documentation'), 'index') ?> |
| 34 | + </li> |
| 35 | + <?php if (! DISABLE_LOGOUT): ?> |
| 36 | + <li> |
| 37 | + <?= $this->url->icon('sign-out', t('Logout'), 'AuthController', 'logout') ?> |
| 38 | + </li> |
| 39 | + <?php endif ?> |
| 40 | + </ul> |
| 41 | +</div> |
| 42 | +<style> |
| 43 | +.avatar-dyn img, .avatar-dyn div {border-radius: <?= $this->task->configModel->get('av_radius', '50') ?>%} |
| 44 | +.avatar-dyn .avatar-letter {line-height:<?= $this->task->configModel->get('av_size', '20') ?>px;width:<?= $this->task->configModel->get('av_size', '20') ?>px;font-size:<?= $this->task->configModel->get('av_size', '20') / 2 ?>px;} |
| 45 | +</style> |
0 commit comments