summaryrefslogtreecommitdiff
path: root/app/Template/task_list
diff options
context:
space:
mode:
authorDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2020-04-08 14:01:28 +0200
committerDzial Techniczny WMW Projekt s.c <techniczna@wmwprojekt.pl>2020-04-08 14:01:28 +0200
commit0dfe48b7fa475aade00a8ccf42e3dba99dfa3702 (patch)
tree92d34a659a841c4d0036fa5ef23b2f2b425c4b4e /app/Template/task_list
parenteca069dbd1318274b4170eb78629b0128dd0543c (diff)
"My tasks" view grops tasks by project - fixes #107
Diffstat (limited to 'app/Template/task_list')
-rw-r--r--app/Template/task_list/task_details.php2
-rw-r--r--app/Template/task_list/task_project_name.php5
2 files changed, 7 insertions, 0 deletions
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 @@
<div class="table-list-details">
+<?php if (!isset($task['render_project_name'])): ?>
<?= $this->text->e($task['project_name']) ?> &gt;
+<?php endif ?>
<?= $this->text->e($task['swimlane_name']) ?> &gt;
<?= $this->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 @@
+<?php if (isset($task['render_project_name']) && $task['render_project_name']): ?>
+<h2>
+ <?= $task['project_name'] ?>
+</h2>
+<?php endif ?>