From 354e37971d43d3b62d8f4e2a23eff09e88525627 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 25 Mar 2016 17:41:41 -0400 Subject: Unification of project header --- app/Template/listing/show.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'app/Template/listing/show.php') diff --git a/app/Template/listing/show.php b/app/Template/listing/show.php index 10dcedcc..c7887ebd 100644 --- a/app/Template/listing/show.php +++ b/app/Template/listing/show.php @@ -1,11 +1,5 @@
- render('project_header/header', array( - 'project' => $project, - 'filters' => $filters, - 'custom_filters_list' => $custom_filters_list, - 'users_list' => $users_list, - 'categories_list' => $categories_list, - )) ?> + projectHeader->render($project, 'Listing', 'show') ?> isEmpty()): ?>

-- cgit v1.2.3 From 2d66f70a49da144c4bc9c856ebb3b9805cf922ad Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 26 Mar 2016 18:05:18 -0400 Subject: Show only necessary menus for viewers --- app/Template/listing/show.php | 6 +++++- app/Template/task/sidebar.php | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'app/Template/listing/show.php') diff --git a/app/Template/listing/show.php b/app/Template/listing/show.php index c7887ebd..98b9528a 100644 --- a/app/Template/listing/show.php +++ b/app/Template/listing/show.php @@ -18,7 +18,11 @@ getCollection() as $task): ?> - render('task/dropdown', array('task' => $task)) ?> + user->hasProjectAccess('taskmodification', 'edit', $task['project_id'])): ?> + render('task/dropdown', array('task' => $task)) ?> + + # + text->e($task['swimlane_name'] ?: $task['default_swimlane']) ?> diff --git a/app/Template/task/sidebar.php b/app/Template/task/sidebar.php index ee3b1594..773b28dc 100644 --- a/app/Template/task/sidebar.php +++ b/app/Template/task/sidebar.php @@ -24,6 +24,8 @@ + + user->hasProjectAccess('taskmodification', 'edit', $task['project_id'])): ?>

  • @@ -90,6 +92,7 @@
+ hook->render('template:task:sidebar', array('task' => $task)) ?> -- cgit v1.2.3