Display user initials when tasks are in collapsed mode

This commit is contained in:
Frederic Guillot
2015-07-04 20:12:17 -04:00
parent 0a9ad08e9e
commit c231b65cfc
3 changed files with 40 additions and 0 deletions

View File

@@ -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>