From 264b5526035be61c043a5314baa0e07e8f3f8216 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 2 Oct 2015 21:58:00 -0400 Subject: Add custom filters (refactoring of pull-request #1312) --- app/Template/project/dropdown.php | 4 ++++ app/Template/project/filters.php | 11 +++++++++++ app/Template/project/sidebar.php | 3 +++ 3 files changed, 18 insertions(+) (limited to 'app/Template/project') diff --git a/app/Template/project/dropdown.php b/app/Template/project/dropdown.php index 96b6a43a..1eb87b0e 100644 --- a/app/Template/project/dropdown.php +++ b/app/Template/project/dropdown.php @@ -2,6 +2,10 @@   url->link(t('Activity'), 'activity', 'project', array('project_id' => $project['id'])) ?> +
  • +   + url->link(t('Custom filters'), 'customfilter', 'index', array('project_id' => $project['id'])) ?> +
  • diff --git a/app/Template/project/filters.php b/app/Template/project/filters.php index 5b9ac472..c8f09fee 100644 --- a/app/Template/project/filters.php +++ b/app/Template/project/filters.php @@ -86,5 +86,16 @@ + + + + \ No newline at end of file diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php index 482a95d2..d8b35e3b 100644 --- a/app/Template/project/sidebar.php +++ b/app/Template/project/sidebar.php @@ -4,6 +4,9 @@
  • app->getRouterAction() === 'show' ? 'class="active"' : '' ?>> url->link(t('Summary'), 'project', 'show', array('project_id' => $project['id'])) ?>
  • +
  • app->getRouterController() === 'customfilter' && $this->app->getRouterAction() === 'index' ? 'class="active"' : '' ?>> + url->link(t('Custom filters'), 'customfilter', 'index', array('project_id' => $project['id'])) ?> +
  • user->isProjectManagementAllowed($project['id'])): ?>
  • app->getRouterController() === 'project' && $this->app->getRouterAction() === 'share' ? 'class="active"' : '' ?>> -- cgit v1.2.3