diff --git a/app/Locales/de_DE/translations.php b/app/Locales/de_DE/translations.php index a504b8658..48f365ff4 100644 --- a/app/Locales/de_DE/translations.php +++ b/app/Locales/de_DE/translations.php @@ -422,4 +422,5 @@ return array( // '[%s][Due tasks]' => '', // '[Kanboard] Notification' => '', // 'I want to receive notifications only for those projects:' => '', + // 'view the task on Kanboard' => '', ); diff --git a/app/Locales/es_ES/translations.php b/app/Locales/es_ES/translations.php index 157a86588..4e86b7669 100644 --- a/app/Locales/es_ES/translations.php +++ b/app/Locales/es_ES/translations.php @@ -420,4 +420,5 @@ return array( // '[%s][Due tasks]' => '', // '[Kanboard] Notification' => '', // 'I want to receive notifications only for those projects:' => '', + // 'view the task on Kanboard' => '', ); diff --git a/app/Locales/fi_FI/translations.php b/app/Locales/fi_FI/translations.php index f593c8af7..4a85630e9 100644 --- a/app/Locales/fi_FI/translations.php +++ b/app/Locales/fi_FI/translations.php @@ -420,4 +420,5 @@ return array( // '[%s][Due tasks]' => '', // '[Kanboard] Notification' => '', // 'I want to receive notifications only for those projects:' => '', + // 'view the task on Kanboard' => '', ); diff --git a/app/Locales/fr_FR/translations.php b/app/Locales/fr_FR/translations.php index 5fa689d0a..8952c2d1d 100644 --- a/app/Locales/fr_FR/translations.php +++ b/app/Locales/fr_FR/translations.php @@ -418,4 +418,5 @@ return array( '[%s][Due tasks]' => '[%s][Tâches expirées]', '[Kanboard] Notification' => '[Kanboard] Notification', 'I want to receive notifications only for those projects:' => 'Je souhaite reçevoir les notifications uniquement pour les projets sélectionnés :', + 'view the task on Kanboard' => 'voir la tâche sur Kanboard', ); diff --git a/app/Locales/pl_PL/translations.php b/app/Locales/pl_PL/translations.php index b8893744a..118853992 100644 --- a/app/Locales/pl_PL/translations.php +++ b/app/Locales/pl_PL/translations.php @@ -422,4 +422,5 @@ return array( // '[%s][Due tasks]' => '', // '[Kanboard] Notification' => '', // 'I want to receive notifications only for those projects:' => '', + // 'view the task on Kanboard' => '', ); diff --git a/app/Locales/pt_BR/translations.php b/app/Locales/pt_BR/translations.php index 7ba45966b..696512f49 100644 --- a/app/Locales/pt_BR/translations.php +++ b/app/Locales/pt_BR/translations.php @@ -423,4 +423,5 @@ return array( // '[%s][Due tasks]' => '', // '[Kanboard] Notification' => '', // 'I want to receive notifications only for those projects:' => '', + // 'view the task on Kanboard' => '', ); diff --git a/app/Locales/sv_SE/translations.php b/app/Locales/sv_SE/translations.php index 1c1bb1991..6d656d302 100644 --- a/app/Locales/sv_SE/translations.php +++ b/app/Locales/sv_SE/translations.php @@ -421,4 +421,5 @@ return array( // '[%s][Due tasks]' => '', // '[Kanboard] Notification' => '', // 'I want to receive notifications only for those projects:' => '', + // 'view the task on Kanboard' => '', ); diff --git a/app/Locales/zh_CN/translations.php b/app/Locales/zh_CN/translations.php index c9adf0cd6..9509fc523 100644 --- a/app/Locales/zh_CN/translations.php +++ b/app/Locales/zh_CN/translations.php @@ -426,4 +426,5 @@ return array( // '[%s][Task opened] %s (#%d)' => '', // '[%s][Due tasks]' => '', // '[Kanboard] Notification' => '', + // 'view the task on Kanboard' => '', ); diff --git a/app/Templates/notification_comment_creation.php b/app/Templates/notification_comment_creation.php index 79d34f90d..44662eca1 100644 --- a/app/Templates/notification_comment_creation.php +++ b/app/Templates/notification_comment_creation.php @@ -4,5 +4,4 @@ = Helper\parse($comment['comment']) ?> -
Kanboard
\ 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 9dbd23329..1c2797375 100644 --- a/app/Templates/notification_comment_update.php +++ b/app/Templates/notification_comment_update.php @@ -4,5 +4,4 @@ = Helper\parse($comment['comment']) ?> -Kanboard
\ 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 57d69f517..50f4a2d5f 100644 --- a/app/Templates/notification_file_creation.php +++ b/app/Templates/notification_file_creation.php @@ -2,5 +2,4 @@Kanboard
\ 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 000000000..f0c9c0d42 --- /dev/null +++ b/app/Templates/notification_footer.php @@ -0,0 +1,6 @@ +Kanboard
+= 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 5ec5ed052..ad6dfdc9e 100644 --- a/app/Templates/notification_subtask_update.php +++ b/app/Templates/notification_subtask_update.php @@ -18,5 +18,4 @@ -Kanboard
\ 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 8b8cedb38..d9b2dce6c 100644 --- a/app/Templates/notification_task_close.php +++ b/app/Templates/notification_task_close.php @@ -2,5 +2,4 @@= t('The task #%d have been closed.', $task['id']) ?>
-Kanboard
\ 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 69beda923..0ec5bfc67 100644 --- a/app/Templates/notification_task_creation.php +++ b/app/Templates/notification_task_creation.php @@ -40,5 +40,4 @@ = Helper\parse($task['description']) ?> -Kanboard
\ 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 1686c7def..3a7089cf6 100644 --- a/app/Templates/notification_task_due.php +++ b/app/Templates/notification_task_due.php @@ -6,5 +6,4 @@ -Kanboard
\ 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 2ef0f04ff..7bf674cc4 100644 --- a/app/Templates/notification_task_open.php +++ b/app/Templates/notification_task_open.php @@ -2,5 +2,4 @@= t('The task #%d have been opened.', $task['id']) ?>
-Kanboard
\ 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 3f61dd2ff..21c1c3aa7 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.') ?> -Kanboard
\ No newline at end of file += Helper\template('notification_footer', array('task' => $task)) ?> \ No newline at end of file diff --git a/config.default.php b/config.default.php index 6986cd48b..6206f37e9 100644 --- a/config.default.php +++ b/config.default.php @@ -1,5 +1,8 @@ /dev/null 2>&1 ``` + +### How to display a link to the task in notifications? + +To do that, you have to specify the URL of your Kanboard installation in your config file. +By default, nothing is defined, so no links will be displayed. + +```php +// Your Kanboard base URL, example: http://demo.kanboard.net/ (used by email notifications or CLI scripts) +define('KANBOARD_URL', ''); +``` + +Examples: + +- http://demo.kanboard.net/ +- http://myserver/kanboard/ +- http://kanboard.mydomain.com/ + +Don't forget the ending `/`. + +You need to define that manually because Kanboard can't guess the URL from a command line script and some people have very specific configuration.