summaryrefslogtreecommitdiff
path: root/app/Template/board/task_public.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/board/task_public.php')
-rw-r--r--app/Template/board/task_public.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/app/Template/board/task_public.php b/app/Template/board/task_public.php
index 82eb6535..8e429ea4 100644
--- a/app/Template/board/task_public.php
+++ b/app/Template/board/task_public.php
@@ -1,14 +1,15 @@
<div class="task-board color-<?= $task['color_id'] ?> <?= $task['date_modification'] > time() - $board_highlight_period ? 'task-board-recent' : '' ?>">
+ <div class="task-board-header">
+ <?= $this->url->link('#'.$task['id'], 'TaskViewController', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?>
- <?= $this->url->link('#'.$task['id'], 'TaskViewController', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?>
+ <?php if (! empty($task['owner_id'])): ?>
+ <span class="task-board-assignee">
+ <?= $this->text->e($task['assignee_name'] ?: $task['assignee_username']) ?>
+ </span>
+ <?php endif ?>
- <?php if ($task['reference']): ?>
- <span class="task-board-reference" title="<?= t('Reference') ?>">
- (<?= $task['reference'] ?>)
- </span>
- <?php endif ?>
-
- <?= $this->render('board/task_avatar', array('task' => $task)) ?>
+ <?= $this->render('board/task_avatar', array('task' => $task)) ?>
+ </div>
<?= $this->hook->render('template:board:public:task:before-title', array('task' => $task)) ?>
<div class="task-board-title">