summaryrefslogtreecommitdiff
path: root/app/Template/header.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-31 18:03:00 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-31 18:03:00 -0500
commit1ca83b5863d5bc8ed41626131f24168b64fd933c (patch)
tree959abba7313da642c4f4194d8c130d7161f0074e /app/Template/header.php
parentfc21d3873e3ac63222ad4065a593c715bef4c251 (diff)
Move homepage menu to the user dropdown
Diffstat (limited to 'app/Template/header.php')
-rw-r--r--app/Template/header.php37
1 files changed, 34 insertions, 3 deletions
diff --git a/app/Template/header.php b/app/Template/header.php
index 074f8fd3..36db54d5 100644
--- a/app/Template/header.php
+++ b/app/Template/header.php
@@ -54,9 +54,40 @@
<a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-user fa-fw"></i><i class="fa fa-caret-down"></i></a>
<ul>
<li class="no-hover"><strong><?= $this->e($this->user->getFullname()) ?></strong></li>
- <li><?= $this->url->link(t('My dashboard'), 'app', 'index', array('user_id' => $this->user->getId())) ?></li>
- <li><?= $this->url->link(t('My profile'), 'user', 'show', array('user_id' => $this->user->getId())) ?></li>
- <li><?= $this->url->link(t('Logout'), 'auth', 'logout') ?></li>
+ <li>
+ <i class="fa fa-tachometer fa-fw"></i>
+ <?= $this->url->link(t('My dashboard'), 'app', 'index', array('user_id' => $this->user->getId())) ?>
+ </li>
+ <li>
+ <i class="fa fa-home fa-fw"></i>
+ <?= $this->url->link(t('My profile'), 'user', 'show', array('user_id' => $this->user->getId())) ?>
+ </li>
+ <li>
+ <i class="fa fa-folder fa-fw"></i>
+ <?= $this->url->link(t('Projects management'), 'project', 'index') ?>
+ </li>
+ <?php if ($this->user->hasAccess('user', 'index')): ?>
+ <li>
+ <i class="fa fa-user fa-fw"></i>
+ <?= $this->url->link(t('Users management'), 'user', 'index') ?>
+ </li>
+ <li>
+ <i class="fa fa-group fa-fw"></i>
+ <?= $this->url->link(t('Groups management'), 'group', 'index') ?>
+ </li>
+ <li>
+ <i class="fa fa-cog fa-fw"></i>
+ <?= $this->url->link(t('Settings'), 'config', 'index') ?>
+ </li>
+ <?php endif ?>
+ <li>
+ <i class="fa fa-life-ring fa-fw"></i>
+ <?= $this->url->link(t('Documentation'), 'doc', 'show') ?>
+ </li>
+ <li>
+ <i class="fa fa-sign-out fa-fw"></i>
+ <?= $this->url->link(t('Logout'), 'auth', 'logout') ?>
+ </li>
</ul>
</div>
</li>