Display a link to the task for email notifications
This commit is contained in:
parent
04bebc4787
commit
9bfb6c4c4b
|
|
@ -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' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -426,4 +426,5 @@ return array(
|
|||
// '[%s][Task opened] %s (#%d)' => '',
|
||||
// '[%s][Due tasks]' => '',
|
||||
// '[Kanboard] Notification' => '',
|
||||
// 'view the task on Kanboard' => '',
|
||||
);
|
||||
|
|
|
|||
|
|
@ -4,5 +4,4 @@
|
|||
|
||||
<?= Helper\parse($comment['comment']) ?>
|
||||
|
||||
<hr/>
|
||||
<p>Kanboard</p>
|
||||
<?= Helper\template('notification_footer', array('task' => $task)) ?>
|
||||
|
|
@ -4,5 +4,4 @@
|
|||
|
||||
<?= Helper\parse($comment['comment']) ?>
|
||||
|
||||
<hr/>
|
||||
<p>Kanboard</p>
|
||||
<?= Helper\template('notification_footer', array('task' => $task)) ?>
|
||||
|
|
@ -2,5 +2,4 @@
|
|||
|
||||
<h3><?= t('New attachment added "%s"', $file['name']) ?></h3>
|
||||
|
||||
<hr/>
|
||||
<p>Kanboard</p>
|
||||
<?= Helper\template('notification_footer', array('task' => $task)) ?>
|
||||
|
|
@ -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 ?>
|
||||
|
|
@ -14,5 +14,4 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<hr/>
|
||||
<p>Kanboard</p>
|
||||
<?= Helper\template('notification_footer', array('task' => $task)) ?>
|
||||
|
|
@ -18,5 +18,4 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<hr/>
|
||||
<p>Kanboard</p>
|
||||
<?= Helper\template('notification_footer', array('task' => $task)) ?>
|
||||
|
|
@ -2,5 +2,4 @@
|
|||
|
||||
<p><?= t('The task #%d have been closed.', $task['id']) ?></p>
|
||||
|
||||
<hr/>
|
||||
<p>Kanboard</p>
|
||||
<?= Helper\template('notification_footer', array('task' => $task)) ?>
|
||||
|
|
@ -40,5 +40,4 @@
|
|||
<?= Helper\parse($task['description']) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<hr/>
|
||||
<p>Kanboard</p>
|
||||
<?= Helper\template('notification_footer', array('task' => $task)) ?>
|
||||
|
|
@ -6,5 +6,4 @@
|
|||
<?php endforeach ?>
|
||||
</ul>
|
||||
|
||||
<hr/>
|
||||
<p>Kanboard</p>
|
||||
<?= Helper\template('notification_footer', array('task' => $task)) ?>
|
||||
|
|
@ -2,5 +2,4 @@
|
|||
|
||||
<p><?= t('The task #%d have been opened.', $task['id']) ?></p>
|
||||
|
||||
<hr/>
|
||||
<p>Kanboard</p>
|
||||
<?= Helper\template('notification_footer', array('task' => $task)) ?>
|
||||
|
|
@ -40,5 +40,4 @@
|
|||
<?= Helper\parse($task['description']) ?: t('There is no description.') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<hr/>
|
||||
<p>Kanboard</p>
|
||||
<?= Helper\template('notification_footer', array('task' => $task)) ?>
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
|
||||
// Your Kanboard base URL, example: http://demo.kanboard.net/ (used by email notifications or CLI scripts)
|
||||
define('KANBOARD_URL', '');
|
||||
|
||||
// E-mail address for the "From" header (notifications)
|
||||
define('MAIL_FROM', 'notifications@kanboard.net');
|
||||
|
||||
|
|
|
|||
|
|
@ -90,3 +90,23 @@ Here a example:
|
|||
# Everyday at 8am we check for due tasks
|
||||
0 8 * * * cd /path/to/kanboard && ./kanboard send-notifications-due-tasks >/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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue