summaryrefslogtreecommitdiff
path: root/app/Template/board/task_avatar.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-24 21:21:22 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-24 21:21:22 -0400
commit4c8d5fbdc0a95243b5233ba471d3a9ac0bc5c6d9 (patch)
tree7adbf4f687bbe9e69c47ab5e423d77b0793996e6 /app/Template/board/task_avatar.php
parent3a06e0ab21ef12e4193f52260e7ecf367c6bb8f0 (diff)
Move avatar to the top right corner
Diffstat (limited to 'app/Template/board/task_avatar.php')
-rw-r--r--app/Template/board/task_avatar.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/Template/board/task_avatar.php b/app/Template/board/task_avatar.php
new file mode 100644
index 00000000..5630c190
--- /dev/null
+++ b/app/Template/board/task_avatar.php
@@ -0,0 +1,19 @@
+<?php if (! empty($task['owner_id'])): ?>
+<div class="task-board-avatars">
+ <span
+ <?php if ($this->user->hasProjectAccess('taskmodification', 'edit', $task['project_id'])): ?>
+ class="task-board-assignee task-board-change-assignee"
+ data-url="<?= $this->url->href('BoardPopover', 'changeAssignee', 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'],
+ 'avatar-inline'
+ ) ?>
+ </span>
+</div>
+<?php endif ?>