From 0dfe48b7fa475aade00a8ccf42e3dba99dfa3702 Mon Sep 17 00:00:00 2001 From: "Dzial Techniczny WMW Projekt s.c" Date: Wed, 8 Apr 2020 14:01:28 +0200 Subject: "My tasks" view grops tasks by project - fixes #107 --- app/Template/dashboard/project_tasks.php | 45 ++++++++++++++++++++++++++++ app/Template/task_list/task_details.php | 2 ++ app/Template/task_list/task_project_name.php | 5 ++++ 3 files changed, 52 insertions(+) create mode 100644 app/Template/dashboard/project_tasks.php create mode 100644 app/Template/task_list/task_project_name.php (limited to 'app/Template') diff --git a/app/Template/dashboard/project_tasks.php b/app/Template/dashboard/project_tasks.php new file mode 100644 index 00000000..1577f814 --- /dev/null +++ b/app/Template/dashboard/project_tasks.php @@ -0,0 +1,45 @@ + +isEmpty()): ?> +

+ +
+ render('task_list/header', array( + 'paginator' => $paginator, + )) ?> + + getCollection() as $task): ?> + render('task_list/task_project_name', array( + 'task' => $task + )) ?> +
+ render('task_list/task_title', array( + 'task' => $task, + 'redirect' => 'dashboard-tasks', + 'is_subtask' => FALSE + )) ?> + + render('task_list/task_details', array( + 'task' => $task, + )) ?> + + render('task_list/task_avatars', array( + 'task' => $task, + )) ?> + + render('task_list/task_icons', array( + 'task' => $task, + )) ?> + + render('task_list/task_subtasks', array( + 'task' => $task, + )) ?> + + hook->render('template:dashboard:task:footer', array('task' => $task)) ?> +
+ +
+ + + diff --git a/app/Template/task_list/task_details.php b/app/Template/task_list/task_details.php index 03e1d3eb..5230a8b5 100644 --- a/app/Template/task_list/task_details.php +++ b/app/Template/task_list/task_details.php @@ -1,5 +1,7 @@
+ text->e($task['project_name']) ?> > + text->e($task['swimlane_name']) ?> > text->e($task['column_name']) ?> diff --git a/app/Template/task_list/task_project_name.php b/app/Template/task_list/task_project_name.php new file mode 100644 index 00000000..c4a6095a --- /dev/null +++ b/app/Template/task_list/task_project_name.php @@ -0,0 +1,5 @@ + +

+ +

+ -- cgit v1.2.3