From 599b6624dde8cb1c1f6416ee0af530402089da4d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 31 May 2015 17:57:02 -0400 Subject: Improve project navigation --- app/Template/project/activity.php | 28 -------------------------- app/Template/project/dropdown.php | 41 ++++++++++++++++++++++++++++++++++++++ app/Template/project/layout.php | 14 +++++++++++-- app/Template/project/search.php | 42 --------------------------------------- app/Template/project/show.php | 1 + app/Template/project/sidebar.php | 27 +++---------------------- app/Template/project/tasks.php | 33 ------------------------------ 7 files changed, 57 insertions(+), 129 deletions(-) delete mode 100644 app/Template/project/activity.php create mode 100644 app/Template/project/dropdown.php delete mode 100644 app/Template/project/search.php delete mode 100644 app/Template/project/tasks.php (limited to 'app/Template/project') diff --git a/app/Template/project/activity.php b/app/Template/project/activity.php deleted file mode 100644 index 1c5dcb75..00000000 --- a/app/Template/project/activity.php +++ /dev/null @@ -1,28 +0,0 @@ -
- -
- render('event/events', array('events' => $events)) ?> -
-
\ No newline at end of file diff --git a/app/Template/project/dropdown.php b/app/Template/project/dropdown.php new file mode 100644 index 00000000..2e2650a7 --- /dev/null +++ b/app/Template/project/dropdown.php @@ -0,0 +1,41 @@ +
  • + + url->link(t('Search'), 'projectinfo', 'search', array('project_id' => $project['id'])) ?> +
  • +
  • + + url->link(t('Completed tasks'), 'projectinfo', 'tasks', array('project_id' => $project['id'])) ?> +
  • +
  • + + url->link(t('Activity'), 'projectinfo', 'activity', array('project_id' => $project['id'])) ?> +
  • +
  • + + url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?> +
  • + + +
  • + url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?> +
  • + + +user->isManager($project['id'])): ?> +
  • + + url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?> +
  • +
  • + + url->link(t('Budget'), 'budget', 'index', array('project_id' => $project['id'])) ?> +
  • +
  • + + url->link(t('Exports'), 'export', 'tasks', array('project_id' => $project['id'])) ?> +
  • +
  • + + url->link(t('Settings'), 'project', 'show', array('project_id' => $project['id'])) ?> +
  • + diff --git a/app/Template/project/layout.php b/app/Template/project/layout.php index f5409500..7bb3d478 100644 --- a/app/Template/project/layout.php +++ b/app/Template/project/layout.php @@ -1,6 +1,16 @@
    -