summaryrefslogtreecommitdiff
path: root/app/Template/task_list/task_avatars.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_avatars.php
parentdc7c7667ec2eb648ca097d00c25a00f7cc9a7d19 (diff)
Redesign task list view
Diffstat (limited to 'app/Template/task_list/task_avatars.php')
-rw-r--r--app/Template/task_list/task_avatars.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/Template/task_list/task_avatars.php b/app/Template/task_list/task_avatars.php
new file mode 100644
index 00000000..6a43b1a6
--- /dev/null
+++ b/app/Template/task_list/task_avatars.php
@@ -0,0 +1,20 @@
+<?php if (! empty($task['owner_id'])): ?>
+ <div class="task-list-avatars">
+ <span
+ <?php if ($this->user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?>
+ class="task-board-change-assignee"
+ data-url="<?= $this->url->href('TaskModificationController', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>">
+ <?php else: ?>
+ class="task-board-assignee">
+ <?php endif ?>
+ <?= $this->avatar->small(
+ $task['owner_id'],
+ $task['assignee_username'],
+ $task['assignee_name'],
+ $task['assignee_email'],
+ $task['assignee_avatar_path'],
+ 'avatar-inline'
+ ) ?><span class="task-avatar-assignee"><?= $this->text->e($task['assignee_name'] ?: $task['assignee_username']) ?></span>
+ </span>
+ </div>
+<?php endif ?> \ No newline at end of file