summaryrefslogtreecommitdiff
path: root/app/Template/task_list/task_title.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_title.php
parentdc7c7667ec2eb648ca097d00c25a00f7cc9a7d19 (diff)
Redesign task list view
Diffstat (limited to 'app/Template/task_list/task_title.php')
-rw-r--r--app/Template/task_list/task_title.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Template/task_list/task_title.php b/app/Template/task_list/task_title.php
new file mode 100644
index 00000000..5e9c7284
--- /dev/null
+++ b/app/Template/task_list/task_title.php
@@ -0,0 +1,11 @@
+<div>
+ <?php if ($this->user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?>
+ <?= $this->render('task/dropdown', array('task' => $task)) ?>
+ <?php else: ?>
+ <strong><?= '#'.$task['id'] ?></strong>
+ <?php endif ?>
+
+ <span class="task-list-title <?= $task['is_active'] == 0 ? 'task-closed' : '' ?>">
+ <?= $this->url->link($this->text->e($task['title']), 'TaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])) ?>
+ </span>
+</div>