From b03357aef341ad55fe28b487131ff4acc851f554 Mon Sep 17 00:00:00 2001 From: kent1 Date: Mon, 16 Apr 2018 11:57:46 -0700 Subject: Improve notifications - Translate subtask status - Translate internal link labels - Add link to tasks and projects in overdue notifications --- app/Template/notification/footer.php | 4 +++- app/Template/notification/subtask_create.php | 12 ++++++------ app/Template/notification/subtask_delete.php | 2 +- app/Template/notification/subtask_update.php | 5 +++-- .../notification/task_internal_link_create_update.php | 2 +- app/Template/notification/task_internal_link_delete.php | 2 +- app/Template/notification/task_overdue.php | 12 +++++++++--- 7 files changed, 24 insertions(+), 15 deletions(-) (limited to 'app/Template/notification') diff --git a/app/Template/notification/footer.php b/app/Template/notification/footer.php index b057a60c..663a591a 100644 --- a/app/Template/notification/footer.php +++ b/app/Template/notification/footer.php @@ -2,6 +2,8 @@ Kanboard app->config('application_url') != ''): ?> - - url->absoluteLink(t('view the task on Kanboard'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + + - url->absoluteLink(t('view the task on Kanboard'), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> + - url->absoluteLink(t('view the board on Kanboard'), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?> diff --git a/app/Template/notification/subtask_create.php b/app/Template/notification/subtask_create.php index 23df3666..17271724 100644 --- a/app/Template/notification/subtask_create.php +++ b/app/Template/notification/subtask_create.php @@ -4,14 +4,14 @@ render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/subtask_delete.php b/app/Template/notification/subtask_delete.php index 24562eba..1f5b12c4 100644 --- a/app/Template/notification/subtask_delete.php +++ b/app/Template/notification/subtask_delete.php @@ -4,7 +4,7 @@ diff --git a/app/Template/notification/subtask_update.php b/app/Template/notification/subtask_update.php index 0c235942..a6c4e9cc 100644 --- a/app/Template/notification/subtask_update.php +++ b/app/Template/notification/subtask_update.php @@ -4,18 +4,19 @@ render('notification/footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/app/Template/notification/task_internal_link_create_update.php b/app/Template/notification/task_internal_link_create_update.php index eab96bfa..4a88ab78 100644 --- a/app/Template/notification/task_internal_link_create_update.php +++ b/app/Template/notification/task_internal_link_create_update.php @@ -3,7 +3,7 @@

url->absoluteLink(t('#%d', $task_link['opposite_task_id']), 'TaskViewController', 'show', array('task_id' => $task_link['opposite_task_id'])), - $this->text->e($task_link['label'])) ?> + e($task_link['label'])) ?>

render('notification/footer', array('task' => $task)) ?> diff --git a/app/Template/notification/task_internal_link_delete.php b/app/Template/notification/task_internal_link_delete.php index e4d57025..2b4b8444 100644 --- a/app/Template/notification/task_internal_link_delete.php +++ b/app/Template/notification/task_internal_link_delete.php @@ -2,7 +2,7 @@

text->e($task_link['label']), + e($task_link['label']), $this->url->absoluteLink(t('#%d', $task_link['opposite_task_id']), 'TaskViewController', 'show', array('task_id' => $task_link['opposite_task_id']))) ?>

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 @@ # - + app->config('application_url') !== ''): ?> url->absoluteLink($this->text->e($task['title']), 'TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?> text->e($task['title']) ?> dt->datetime($task['date_due']) ?> - text->e($task['project_name']) ?> + + app->config('application_url') !== ''): ?> + url->absoluteLink($this->text->e($task['project_name']), 'BoardViewController', 'show', array('project_id' => $task['project_id'])) ?> + + text->e($task['project_name']) ?> + + text->e($task['assignee_name'] ?: $task['assignee_username']) ?> @@ -28,4 +34,4 @@ - + \ No newline at end of file -- cgit v1.2.3