From ae70f47cc12587414c03b11a377cba97e1f10361 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 13 May 2016 22:36:41 -0400 Subject: Added dropdown for projects --- app/Template/project_header/dropdown.php | 49 ++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) (limited to 'app/Template/project_header') 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 @@ - render('project/dropdown', array('project' => $project)) ?> + +
  • +   + url->link(t('Activity'), 'activity', 'project', array('project_id' => $project['id'])) ?> +
  • + + user->hasProjectAccess('customfilter', 'index', $project['id'])): ?> +
  • +   + url->link(t('Custom filters'), 'customfilter', 'index', array('project_id' => $project['id'])) ?> +
  • + + + +
  • +  url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?> +
  • + + + hook->render('template:project:dropdown', array('project' => $project)) ?> + + user->hasProjectAccess('analytic', 'tasks', $project['id'])): ?> +
  • +   + url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?> +
  • + + + user->hasProjectAccess('export', 'tasks', $project['id'])): ?> +
  • +   + url->link(t('Exports'), 'export', 'tasks', array('project_id' => $project['id'])) ?> +
  • + + + user->hasProjectAccess('ProjectEdit', 'edit', $project['id'])): ?> +
  • +   + url->link(t('Settings'), 'project', 'show', array('project_id' => $project['id'])) ?> +
  • + + +
  • + + url->link(t('Manage projects'), 'project', 'index') ?> +
  • - \ No newline at end of file + -- cgit v1.2.3