summaryrefslogtreecommitdiff
path: root/app/Model/Notification.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-14 11:50:31 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-14 11:50:31 -0400
commit9b399951f430b26379a2bf8b13ace99290227e61 (patch)
tree4dd694985dc9f27782ad365d376dc5a37f1e987e /app/Model/Notification.php
parenta785810f2d11ad14ab3497a51ca10a6780b758ad (diff)
Improve activity stream/notification for task update events and add new notification for swimlane change
Diffstat (limited to 'app/Model/Notification.php')
-rw-r--r--app/Model/Notification.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/Model/Notification.php b/app/Model/Notification.php
index 1ef6a88f..d18e7642 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'), 'colors_list' => $this->color->getList())
+ $event_data + array('application_url' => $this->config->get('application_url'))
);
}
@@ -311,13 +311,16 @@ class Notification extends Base
$subject = $this->getStandardMailSubject(e('Task opened'), $event_data);
break;
case Task::EVENT_MOVE_COLUMN:
- $subject = $this->getStandardMailSubject(e('Column Change'), $event_data);
+ $subject = $this->getStandardMailSubject(e('Column change'), $event_data);
break;
case Task::EVENT_MOVE_POSITION:
- $subject = $this->getStandardMailSubject(e('Position Change'), $event_data);
+ $subject = $this->getStandardMailSubject(e('Position change'), $event_data);
+ break;
+ case Task::EVENT_MOVE_SWIMLANE:
+ $subject = $this->getStandardMailSubject(e('Swimlane change'), $event_data);
break;
case Task::EVENT_ASSIGNEE_CHANGE:
- $subject = $this->getStandardMailSubject(e('Assignee Change'), $event_data);
+ $subject = $this->getStandardMailSubject(e('Assignee change'), $event_data);
break;
case Task::EVENT_OVERDUE:
$subject = e('[%s] Overdue tasks', $event_data['project_name']);