From 14713b0ec7ed93ca45578da069ad4e19a7d8addf Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 28 May 2016 19:48:22 -0400 Subject: Rename all models --- app/Model/NotificationModel.php | 136 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 app/Model/NotificationModel.php (limited to 'app/Model/NotificationModel.php') diff --git a/app/Model/NotificationModel.php b/app/Model/NotificationModel.php new file mode 100644 index 00000000..8937b77e --- /dev/null +++ b/app/Model/NotificationModel.php @@ -0,0 +1,136 @@ + 1 ? e('%d overdue tasks', $nb) : e('Task #%d is overdue', $event_data['tasks'][0]['id']); + case TaskModel::EVENT_USER_MENTION: + return e('You were mentioned in the task #%d', $event_data['task']['id']); + case CommentModel::EVENT_USER_MENTION: + return e('You were mentioned in a comment on the task #%d', $event_data['task']['id']); + default: + return e('Notification'); + } + } +} -- cgit v1.2.3