summaryrefslogtreecommitdiff
path: root/app/Template/notification/task_overdue.php
diff options
context:
space:
mode:
authorkent1 <kent1@arscenic.info>2018-04-16 11:57:46 -0700
committerFrédéric Guillot <fred@kanboard.net>2018-04-16 11:57:46 -0700
commitb03357aef341ad55fe28b487131ff4acc851f554 (patch)
tree195fd449b02c4c15dc6fdeafb5e126e8929a2ec6 /app/Template/notification/task_overdue.php
parent0e5e3b30fd3a8ac0d9606d2a91777fcd587e3157 (diff)
Improve notifications
- Translate subtask status - Translate internal link labels - Add link to tasks and projects in overdue notifications
Diffstat (limited to 'app/Template/notification/task_overdue.php')
-rw-r--r--app/Template/notification/task_overdue.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/Template/notification/task_overdue.php b/app/Template/notification/task_overdue.php
index 2ad4c14d..cb954c0b 100644
--- a/app/Template/notification/task_overdue.php
+++ b/app/Template/notification/task_overdue.php
@@ -13,14 +13,20 @@
<tr style="overflow: hidden; background: #fff; text-align: left; padding-top: .5em; padding-bottom: .5em; padding-left: 3px; padding-right: 3px;">
<td style="border: 1px solid #eee;">#<?= $task['id'] ?></td>
<td style="border: 1px solid #eee;">
- <?php if (! empty($application_url)): ?>
+ <?php if ($this->app->config('application_url') !== ''): ?>
<?= $this->url->absoluteLink($this->text->e($task['title']), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
<?php else: ?>
<?= $this->text->e($task['title']) ?>
<?php endif ?>
</td>
<td style="border: 1px solid #eee;"><?= $this->dt->datetime($task['date_due']) ?></td>
- <td style="border: 1px solid #eee;"><?= $this->text->e($task['project_name']) ?></td>
+ <td style="border: 1px solid #eee;">
+ <?php if ($this->app->config('application_url') !== ''): ?>
+ <?= $this->url->absoluteLink($this->text->e($task['project_name']), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?>
+ <?php else: ?>
+ <?= $this->text->e($task['project_name']) ?>
+ <?php endif ?>
+ </td>
<td style="border: 1px solid #eee;">
<?php if (! empty($task['assignee_username'])): ?>
<?= $this->text->e($task['assignee_name'] ?: $task['assignee_username']) ?>
@@ -28,4 +34,4 @@
</td>
</tr>
<?php endforeach ?>
-</table>
+</table> \ No newline at end of file