diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-15 20:09:43 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-15 20:09:43 -0400 |
commit | 8a6f02735b628033a3284d06a9f633bd260e19ef (patch) | |
tree | 57d0c2acb22d6afe0412903a088ed77ac0ba3596 /app/Template/project_header/dropdown.php | |
parent | 67b836164997527b91452b19adbcb8aa3c5decf1 (diff) |
Added task creation menu for all projects views
Diffstat (limited to 'app/Template/project_header/dropdown.php')
-rw-r--r-- | app/Template/project_header/dropdown.php | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/app/Template/project_header/dropdown.php b/app/Template/project_header/dropdown.php index fdfcaf26..1aa59a8d 100644 --- a/app/Template/project_header/dropdown.php +++ b/app/Template/project_header/dropdown.php @@ -30,21 +30,29 @@ </li> <?php endif ?> + <?php if ($this->user->hasProjectAccess('TaskCreationController', 'show', $project['id'])): ?> + <li> + <i class="fa fa-plus fa-fw"></i> + <?= $this->url->link(t('Add a new task'), 'TaskCreationController', 'show', array('project_id' => $project['id']), false, 'popover') ?> + </li> + <?php endif ?> + <li> - <i class="fa fa-dashboard fa-fw"></i> + <i class="fa fa-dashboard fa-fw"></i> <?= $this->url->link(t('Activity'), 'activity', 'project', array('project_id' => $project['id'])) ?> </li> <?php if ($this->user->hasProjectAccess('customfilter', 'index', $project['id'])): ?> <li> - <i class="fa fa-filter fa-fw"></i> + <i class="fa fa-filter fa-fw"></i> <?= $this->url->link(t('Custom filters'), 'customfilter', 'index', array('project_id' => $project['id'])) ?> </li> <?php endif ?> <?php if ($project['is_public']): ?> <li> - <i class="fa fa-share-alt fa-fw"></i> <?= $this->url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?> + <i class="fa fa-share-alt fa-fw"></i> + <?= $this->url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?> </li> <?php endif ?> @@ -52,21 +60,21 @@ <?php if ($this->user->hasProjectAccess('analytic', 'tasks', $project['id'])): ?> <li> - <i class="fa fa-line-chart fa-fw"></i> + <i class="fa fa-line-chart fa-fw"></i> <?= $this->url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?> </li> <?php endif ?> <?php if ($this->user->hasProjectAccess('export', 'tasks', $project['id'])): ?> <li> - <i class="fa fa-download fa-fw"></i> + <i class="fa fa-download fa-fw"></i> <?= $this->url->link(t('Exports'), 'export', 'tasks', array('project_id' => $project['id'])) ?> </li> <?php endif ?> <?php if ($this->user->hasProjectAccess('ProjectEdit', 'edit', $project['id'])): ?> <li> - <i class="fa fa-cog fa-fw"></i> + <i class="fa fa-cog fa-fw"></i> <?= $this->url->link(t('Settings'), 'project', 'show', array('project_id' => $project['id'])) ?> </li> <?php endif ?> |