From 521379a350da1e67be88a81f0434ec8f5df37e5e Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 13 Aug 2016 20:23:04 -0400 Subject: Display same task summary on all task view pages --- app/Template/task/analytics.php | 10 ++-- app/Template/task/show.php | 74 ++++++++++++++--------------- app/Template/task/time_tracking_details.php | 9 ++-- app/Template/task/transitions.php | 9 ++-- 4 files changed, 56 insertions(+), 46 deletions(-) (limited to 'app/Template/task') diff --git a/app/Template/task/analytics.php b/app/Template/task/analytics.php index db2d0cef..ecfef242 100644 --- a/app/Template/task/analytics.php +++ b/app/Template/task/analytics.php @@ -1,6 +1,10 @@ -
-

text->e($task['title']) ?>

-
+render('task/details', array( + 'task' => $task, + 'tags' => $tags, + 'project' => $project, + 'editable' => false, +)) ?> + diff --git a/app/Template/task/show.php b/app/Template/task/show.php index b18c2bca..a5c2d5a7 100644 --- a/app/Template/task/show.php +++ b/app/Template/task/show.php @@ -8,58 +8,58 @@ )) ?> -hook->render('template:task:show:before-description', array('task' => $task, 'project' => $project)) ?> -render('task/description', array('task' => $task)) ?> + hook->render('template:task:show:before-description', array('task' => $task, 'project' => $project)) ?> + render('task/description', array('task' => $task)) ?> -hook->render('template:task:show:before-subtasks', array('task' => $task, 'project' => $project)) ?> -render('subtask/show', array( - 'task' => $task, - 'subtasks' => $subtasks, - 'project' => $project, - 'editable' => true, -)) ?> + hook->render('template:task:show:before-subtasks', array('task' => $task, 'project' => $project)) ?> + render('subtask/show', array( + 'task' => $task, + 'subtasks' => $subtasks, + 'project' => $project, + 'editable' => true, + )) ?> -hook->render('template:task:show:before-internal-links', array('task' => $task, 'project' => $project)) ?> -render('task_internal_link/show', array( - 'task' => $task, - 'links' => $internal_links, - 'project' => $project, - 'link_label_list' => $link_label_list, - 'editable' => true, - 'is_public' => false, -)) ?> + hook->render('template:task:show:before-internal-links', array('task' => $task, 'project' => $project)) ?> + render('task_internal_link/show', array( + 'task' => $task, + 'links' => $internal_links, + 'project' => $project, + 'link_label_list' => $link_label_list, + 'editable' => true, + 'is_public' => false, + )) ?> -hook->render('template:task:show:before-external-links', array('task' => $task, 'project' => $project)) ?> -render('task_external_link/show', array( - 'task' => $task, - 'links' => $external_links, - 'project' => $project, -)) ?> + hook->render('template:task:show:before-external-links', array('task' => $task, 'project' => $project)) ?> + render('task_external_link/show', array( + 'task' => $task, + 'links' => $external_links, + 'project' => $project, + )) ?> -hook->render('template:task:show:before-attachments', array('task' => $task, 'project' => $project)) ?> -render('task_file/show', array( - 'task' => $task, - 'files' => $files, - 'images' => $images -)) ?> + hook->render('template:task:show:before-attachments', array('task' => $task, 'project' => $project)) ?> + render('task_file/show', array( + 'task' => $task, + 'files' => $files, + 'images' => $images + )) ?> -hook->render('template:task:show:before-comments', array('task' => $task, 'project' => $project)) ?> -render('comments/show', array( - 'task' => $task, - 'comments' => $comments, - 'project' => $project, - 'editable' => $this->user->hasProjectAccess('CommentController', 'edit', $project['id']), -)) ?> + hook->render('template:task:show:before-comments', array('task' => $task, 'project' => $project)) ?> + render('comments/show', array( + 'task' => $task, + 'comments' => $comments, + 'project' => $project, + 'editable' => $this->user->hasProjectAccess('CommentController', 'edit', $project['id']), + )) ?> hook->render('template:task:show:bottom', array('task' => $task, 'project' => $project)) ?> diff --git a/app/Template/task/time_tracking_details.php b/app/Template/task/time_tracking_details.php index 1a179522..2b46ca6b 100644 --- a/app/Template/task/time_tracking_details.php +++ b/app/Template/task/time_tracking_details.php @@ -1,6 +1,9 @@ -
-

text->e($task['title']) ?>

-
+render('task/details', array( + 'task' => $task, + 'tags' => $tags, + 'project' => $project, + 'editable' => false, +)) ?> render('task/time_tracking_summary', array('task' => $task)) ?> diff --git a/app/Template/task/transitions.php b/app/Template/task/transitions.php index 9e04c4e1..6f5f02a6 100644 --- a/app/Template/task/transitions.php +++ b/app/Template/task/transitions.php @@ -1,6 +1,9 @@ -
-

text->e($task['title']) ?>

-
+render('task/details', array( + 'task' => $task, + 'tags' => $tags, + 'project' => $project, + 'editable' => false, +)) ?>