summaryrefslogtreecommitdiff
path: root/app/Template/task_list/task_details.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-19 17:08:00 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-19 17:08:00 -0500
commit3b3e8033696e408e699b911c042361d62ce7b7ac (patch)
tree33f2d450bbe40a56703cf22f0d62a67a6f6923f5 /app/Template/task_list/task_details.php
parentdc7c7667ec2eb648ca097d00c25a00f7cc9a7d19 (diff)
Redesign task list view
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