Move homepage menu to the user dropdown

This commit is contained in:
Frederic Guillot 2016-01-31 18:03:00 -05:00
parent fc21d3873e
commit 1ca83b5863
27 changed files with 155 additions and 13 deletions

View File

@ -22,6 +22,7 @@ New features:
Improvements:
* Move homepage menus to the user dropdown
* Have a new task assigned to the creator by default instead of "no assignee"
* Show progress for task links in board tooltips
* Simplify code to handle ajax popover and redirects

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1128,4 +1128,9 @@ return array(
'There is no internal link for the moment.' => 'Il n\'y a pas de lien interne pour le moment.',
'Assign to me' => 'Assigner à moi',
'Me' => 'Moi',
'Do not duplicate anything' => 'Ne rien dupliquer',
'Projects management' => 'Gestion des projets',
'Users management' => 'Gestion des utilisateurs',
'Groups management' => 'Gestion des groupes',
'Create from another project' => 'Créer depuis un autre projet',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -1125,4 +1125,9 @@ return array(
// 'There is no internal link for the moment.' => '',
// 'Assign to me' => '',
// 'Me' => '',
// 'Do not duplicate anything' => '',
// 'Projects management' => '',
// 'Users management' => '',
// 'Groups management' => '',
// 'Create from another project' => '',
);

View File

@ -19,16 +19,6 @@
<i class="fa fa-folder fa-fw"></i>
<?= $this->url->link(t('Project management'), 'project', 'index') ?>
</li>
<?php if ($this->user->hasAccess('user', 'index')): ?>
<li>
<i class="fa fa-user fa-fw"></i>
<?= $this->url->link(t('User management'), 'user', 'index') ?>
</li>
<li>
<i class="fa fa-cog fa-fw"></i>
<?= $this->url->link(t('Settings'), 'config', 'index') ?>
</li>
<?php endif ?>
</ul>
</div>
<section class="sidebar-container" id="dashboard">

View File

@ -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>