summaryrefslogtreecommitdiff
path: root/app/Templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/Templates')
-rw-r--r--app/Templates/notification_task_due.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Templates/notification_task_due.php b/app/Templates/notification_task_due.php
index 3a7089cf..25ecc9f1 100644
--- a/app/Templates/notification_task_due.php
+++ b/app/Templates/notification_task_due.php
@@ -2,7 +2,13 @@
<ul>
<?php foreach ($tasks as $task): ?>
- <li>(<strong>#<?= $task['id'] ?></strong>) <?= Helper\escape($task['title']) ?> (<strong><?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?></strong>)</li>
+ <li>
+ (<strong>#<?= $task['id'] ?></strong>)
+ <?= Helper\escape($task['title']) ?>
+ <?php if ($task['assignee_username']): ?>
+ (<strong><?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?></strong>)
+ <?php endif ?>
+ </li>
<?php endforeach ?>
</ul>