summaryrefslogtreecommitdiff
path: root/app/Template/board/task_footer.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-19 14:36:16 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-19 14:36:16 -0400
commit63a5bbafea58ffcf7b018d8e36569543c7dbe953 (patch)
treebabd78cb695b5630a7075fdd6d51968eebcac9e6 /app/Template/board/task_footer.php
parent2e320ceeadf5e134352a9bb83efff93964a40f81 (diff)
Show avatar on the cards
Diffstat (limited to 'app/Template/board/task_footer.php')
-rw-r--r--app/Template/board/task_footer.php24
1 files changed, 22 insertions, 2 deletions
diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php
index cb1f1b0d..f5614f1d 100644
--- a/app/Template/board/task_footer.php
+++ b/app/Template/board/task_footer.php
@@ -18,6 +18,26 @@
</div>
<?php endif ?>
+<?php if (! empty($task['owner_id'])): ?>
+<div class="task-board-avatars">
+ <?php if ($this->user->hasProjectAccess('taskmodification', 'edit', $task['project_id'])): ?>
+ <div
+ 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: ?>
+ <div class="task-board-assignee">
+ <?php endif ?>
+ <?= $this->avatar->small(
+ $task['owner_id'],
+ $task['assignee_username'],
+ $task['assignee_name'],
+ $task['assignee_email'],
+ 'avatar-inline'
+ ) ?>
+ </div>
+</div>
+<?php endif ?>
+
<div class="task-board-icons">
<?php if (! empty($task['date_due'])): ?>
<span class="task-board-date <?= time() > $task['date_due'] ? 'task-board-date-overdue' : '' ?>">
@@ -59,8 +79,6 @@
<i class="fa fa-file-text-o"></i>
</span>
<?php endif ?>
-
- <?= $this->hook->render('template:board:task:footer', array('task' => $task)) ?>
<?php if ($task['score']): ?>
<span class="task-score"><?= $this->text->e($task['score']) ?></span>
@@ -78,3 +96,5 @@
<?= $this->task->formatPriority($project, $task) ?>
</div>
+
+<?= $this->hook->render('template:board:task:footer', array('task' => $task)) ?>