Vulcan/packages/nova-posts/lib/notifications.js
2016-02-17 21:57:20 +09:00

32 lines
No EOL
932 B
JavaScript

Telescope.notifications = Object.assign(Telescope.notifications, {
newPost: {
properties: function () {
return Posts.getNotificationProperties(this.data.post);
},
subject: function () {
return this.postAuthorName+' has created a new post: '+this.postTitle;
},
emailTemplate: "emailNewPost"
},
newPendingPost: {
properties: function () {
return Posts.getNotificationProperties(this.data.post);
},
subject: function () {
return this.postAuthorName+' has a new post pending approval: '+this.postTitle;
},
emailTemplate: "emailNewPendingPost"
},
postApproved: {
properties: function () {
return Posts.getNotificationProperties(this.data.post);
},
subject: function () {
return 'Your post “'+this.postTitle+'” has been approved';
},
emailTemplate: "emailPostApproved",
onsiteTemplate: "notification_post_approved"
}
});