summaryrefslogtreecommitdiff
path: root/app/Template/task_list/task_details.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/task_list/task_details.php')
-rw-r--r--app/Template/task_list/task_details.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/Template/task_list/task_details.php b/app/Template/task_list/task_details.php
new file mode 100644
index 00000000..33ae380a
--- /dev/null
+++ b/app/Template/task_list/task_details.php
@@ -0,0 +1,23 @@
+<div class="task-list-details">
+ <?= $this->text->e($task['project_name']) ?> &gt;
+ <?= $this->text->e($task['swimlane_name']) ?> &gt;
+ <?= $this->text->e($task['column_name']) ?>
+
+ <?php if (! empty($task['category_id'])): ?>
+ <span class="task-list-category">
+ <?php if ($this->user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?>
+ <?= $this->url->link(
+ $this->text->e($task['category_name']),
+ 'TaskModificationController',
+ 'edit',
+ array('task_id' => $task['id'], 'project_id' => $task['project_id']),
+ false,
+ 'js-modal-medium' . (! empty($task['category_description']) ? ' tooltip' : ''),
+ ! empty($task['category_description']) ? $this->text->markdownAttribute($task['category_description']) : t('Change category')
+ ) ?>
+ <?php else: ?>
+ <?= $this->text->e($task['category_name']) ?>
+ <?php endif ?>
+ </span>
+ <?php endif ?>
+</div> \ No newline at end of file