diff options
Diffstat (limited to 'app/Template/project_header/dropdown.php')
-rw-r--r-- | app/Template/project_header/dropdown.php | 49 |
1 files changed, 47 insertions, 2 deletions
diff --git a/app/Template/project_header/dropdown.php b/app/Template/project_header/dropdown.php index 759a5135..fdfcaf26 100644 --- a/app/Template/project_header/dropdown.php +++ b/app/Template/project_header/dropdown.php @@ -29,6 +29,51 @@ </span> </li> <?php endif ?> - <?= $this->render('project/dropdown', array('project' => $project)) ?> + + <li> + <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> + <?= $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) ?> + </li> + <?php endif ?> + + <?= $this->hook->render('template:project:dropdown', array('project' => $project)) ?> + + <?php if ($this->user->hasProjectAccess('analytic', 'tasks', $project['id'])): ?> + <li> + <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> + <?= $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> + <?= $this->url->link(t('Settings'), 'project', 'show', array('project_id' => $project['id'])) ?> + </li> + <?php endif ?> + + <li> + <i class="fa fa-folder fa-fw" aria-hidden="true"></i> + <?= $this->url->link(t('Manage projects'), 'project', 'index') ?> + </li> </ul> -</div>
\ No newline at end of file +</div> |