summaryrefslogtreecommitdiff
path: root/app/Templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/Templates')
-rw-r--r--app/Templates/notification_comment_creation.php3
-rw-r--r--app/Templates/notification_comment_update.php3
-rw-r--r--app/Templates/notification_file_creation.php3
-rw-r--r--app/Templates/notification_footer.php6
-rw-r--r--app/Templates/notification_subtask_creation.php3
-rw-r--r--app/Templates/notification_subtask_update.php3
-rw-r--r--app/Templates/notification_task_close.php3
-rw-r--r--app/Templates/notification_task_creation.php3
-rw-r--r--app/Templates/notification_task_due.php3
-rw-r--r--app/Templates/notification_task_open.php3
-rw-r--r--app/Templates/notification_task_update.php3
11 files changed, 16 insertions, 20 deletions
diff --git a/app/Templates/notification_comment_creation.php b/app/Templates/notification_comment_creation.php
index 79d34f90..44662eca 100644
--- a/app/Templates/notification_comment_creation.php
+++ b/app/Templates/notification_comment_creation.php
@@ -4,5 +4,4 @@
<?= Helper\parse($comment['comment']) ?>
-<hr/>
-<p>Kanboard</p> \ No newline at end of file
+<?= Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file
diff --git a/app/Templates/notification_comment_update.php b/app/Templates/notification_comment_update.php
index 9dbd2332..1c279737 100644
--- a/app/Templates/notification_comment_update.php
+++ b/app/Templates/notification_comment_update.php
@@ -4,5 +4,4 @@
<?= Helper\parse($comment['comment']) ?>
-<hr/>
-<p>Kanboard</p> \ No newline at end of file
+<?= Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file
diff --git a/app/Templates/notification_file_creation.php b/app/Templates/notification_file_creation.php
index 57d69f51..50f4a2d5 100644
--- a/app/Templates/notification_file_creation.php
+++ b/app/Templates/notification_file_creation.php
@@ -2,5 +2,4 @@
<h3><?= t('New attachment added "%s"', $file['name']) ?></h3>
-<hr/>
-<p>Kanboard</p> \ No newline at end of file
+<?= Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file
diff --git a/app/Templates/notification_footer.php b/app/Templates/notification_footer.php
new file mode 100644
index 00000000..f0c9c0d4
--- /dev/null
+++ b/app/Templates/notification_footer.php
@@ -0,0 +1,6 @@
+<hr/>
+Kanboard
+
+<?php if (defined('KANBOARD_URL')): ?>
+ - <a href="<?= KANBOARD_URL.'?controller=task&action=show&task_id='.$task['id'] ?>"><?= t('view the task on Kanboard') ?></a>.
+<?php endif ?>
diff --git a/app/Templates/notification_subtask_creation.php b/app/Templates/notification_subtask_creation.php
index e02ceaf0..c382355c 100644
--- a/app/Templates/notification_subtask_creation.php
+++ b/app/Templates/notification_subtask_creation.php
@@ -14,5 +14,4 @@
</li>
</ul>
-<hr/>
-<p>Kanboard</p>
+<?= Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file
diff --git a/app/Templates/notification_subtask_update.php b/app/Templates/notification_subtask_update.php
index 5ec5ed05..ad6dfdc9 100644
--- a/app/Templates/notification_subtask_update.php
+++ b/app/Templates/notification_subtask_update.php
@@ -18,5 +18,4 @@
</li>
</ul>
-<hr/>
-<p>Kanboard</p> \ No newline at end of file
+<?= Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file
diff --git a/app/Templates/notification_task_close.php b/app/Templates/notification_task_close.php
index 8b8cedb3..d9b2dce6 100644
--- a/app/Templates/notification_task_close.php
+++ b/app/Templates/notification_task_close.php
@@ -2,5 +2,4 @@
<p><?= t('The task #%d have been closed.', $task['id']) ?></p>
-<hr/>
-<p>Kanboard</p> \ No newline at end of file
+<?= Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file
diff --git a/app/Templates/notification_task_creation.php b/app/Templates/notification_task_creation.php
index 69beda92..0ec5bfc6 100644
--- a/app/Templates/notification_task_creation.php
+++ b/app/Templates/notification_task_creation.php
@@ -40,5 +40,4 @@
<?= Helper\parse($task['description']) ?>
<?php endif ?>
-<hr/>
-<p>Kanboard</p> \ No newline at end of file
+<?= Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file
diff --git a/app/Templates/notification_task_due.php b/app/Templates/notification_task_due.php
index 1686c7de..3a7089cf 100644
--- a/app/Templates/notification_task_due.php
+++ b/app/Templates/notification_task_due.php
@@ -6,5 +6,4 @@
<?php endforeach ?>
</ul>
-<hr/>
-<p>Kanboard</p> \ No newline at end of file
+<?= Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file
diff --git a/app/Templates/notification_task_open.php b/app/Templates/notification_task_open.php
index 2ef0f04f..7bf674cc 100644
--- a/app/Templates/notification_task_open.php
+++ b/app/Templates/notification_task_open.php
@@ -2,5 +2,4 @@
<p><?= t('The task #%d have been opened.', $task['id']) ?></p>
-<hr/>
-<p>Kanboard</p> \ No newline at end of file
+<?= Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file
diff --git a/app/Templates/notification_task_update.php b/app/Templates/notification_task_update.php
index 3f61dd2f..21c1c3aa 100644
--- a/app/Templates/notification_task_update.php
+++ b/app/Templates/notification_task_update.php
@@ -40,5 +40,4 @@
<?= Helper\parse($task['description']) ?: t('There is no description.') ?>
<?php endif ?>
-<hr/>
-<p>Kanboard</p> \ No newline at end of file
+<?= Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file