diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-04 20:12:17 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-04 20:12:17 -0400 |
commit | c231b65cfc54aad8b143a76e19c6aea428f42a5c (patch) | |
tree | 0550e6185d8681f354dae42d2d44a2466e37a8af /app/Template/board/task_private.php | |
parent | 0a9ad08e9e98645b8d8d53a0d4f56558a2aa8a78 (diff) |
Display user initials when tasks are in collapsed mode
Diffstat (limited to 'app/Template/board/task_private.php')
-rw-r--r-- | app/Template/board/task_private.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Template/board/task_private.php b/app/Template/board/task_private.php index 3cd471d7..48e931c9 100644 --- a/app/Template/board/task_private.php +++ b/app/Template/board/task_private.php @@ -11,6 +11,11 @@ <?= $this->render('board/task_menu', array('task' => $task)) ?> <div class="task-board-collapsed" style="display: none"> + <?php if (! empty($task['assignee_username'])): ?> + <span title="<?= $this->e($task['assignee_name'] ?: $task['assignee_username']) ?>"> + <?= $this->e($this->user->getInitials($task['assignee_name'] ?: $task['assignee_username'])) ?> + </span> - + <?php endif ?> <?= $this->url->link($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-collapsed-title') ?> </div> |