diff --git a/app/Model/Notification.php b/app/Model/Notification.php index 34500483e..1ef6a88f2 100644 --- a/app/Model/Notification.php +++ b/app/Model/Notification.php @@ -268,7 +268,7 @@ class Notification extends Base { return $this->template->render( 'notification/'.str_replace('.', '_', $event_name), - $event_data + array('application_url' => $this->config->get('application_url')) + $event_data + array('application_url' => $this->config->get('application_url'), 'colors_list' => $this->color->getList()) ); } diff --git a/app/Subscriber/NotificationSubscriber.php b/app/Subscriber/NotificationSubscriber.php index 41fd6aef5..d605c9f35 100644 --- a/app/Subscriber/NotificationSubscriber.php +++ b/app/Subscriber/NotificationSubscriber.php @@ -41,6 +41,7 @@ class NotificationSubscriber extends \Core\Base implements EventSubscriberInterf switch (get_class($event)) { case 'Event\TaskEvent': $values['task'] = $this->taskFinder->getDetails($event['task_id']); + $values['changes'] = isset($event['changes']) ? $event['changes'] : array(); break; case 'Event\SubtaskEvent': $values['subtask'] = $this->subtask->getById($event['id'], true); diff --git a/app/Template/notification/task_update.php b/app/Template/notification/task_update.php index ffea49cd8..0352788b1 100644 --- a/app/Template/notification/task_update.php +++ b/app/Template/notification/task_update.php @@ -1,43 +1,65 @@

e($task['title']) ?> (#)

- + - -

- text->markdown($task['description']) ?: t('There is no description.') ?> + +

+ + + +

+ text->markdown($task['description']) ?> + render('notification/footer', array('task' => $task, 'application_url' => $application_url)) ?> \ No newline at end of file