summaryrefslogtreecommitdiff
path: root/app/Template/board/task_private.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-09-25 20:12:34 -0400
committerFrederic Guillot <fred@kanboard.net>2015-09-25 20:12:34 -0400
commit040864863fe821c1ea5ffa00382bc822f72791f0 (patch)
tree6074dc0a49f3d9c30488bb245459b004670164a7 /app/Template/board/task_private.php
parent55afa4fd7879dcd4d0b20d29975ba79d03331e29 (diff)
Show assignee on card only when someone is assigned
Diffstat (limited to 'app/Template/board/task_private.php')
-rw-r--r--app/Template/board/task_private.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Template/board/task_private.php b/app/Template/board/task_private.php
index a6c8a9e1..a2fe890b 100644
--- a/app/Template/board/task_private.php
+++ b/app/Template/board/task_private.php
@@ -29,9 +29,10 @@
</span>
<?php endif ?>
+ <?php if (! empty($task['owner_id'])): ?>
<span class="task-board-user <?= $this->user->isCurrentUser($task['owner_id']) ? 'task-board-current-user' : '' ?>">
<?= $this->url->link(
- (! empty($task['owner_id']) ? ($task['assignee_name'] ?: $task['assignee_username']) : t('Nobody assigned')),
+ $task['assignee_name'] ?: $task['assignee_username'],
'board',
'changeAssignee',
array('task_id' => $task['id'], 'project_id' => $task['project_id']),
@@ -40,6 +41,7 @@
t('Change assignee')
) ?>
</span>
+ <?php endif ?>
<?php if ($task['is_active'] == 1): ?>
<div class="task-board-days">