2016-02-17 12:54:18 +09:00
|
|
|
/**
|
|
|
|
* The global namespace/collection for Posts.
|
|
|
|
* @namespace Posts
|
|
|
|
*/
|
|
|
|
Posts = new Mongo.Collection("posts");
|
|
|
|
|
2015-04-22 07:50:11 +09:00
|
|
|
/**
|
|
|
|
* Posts config namespace
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
Posts.config = {};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Post Statuses
|
|
|
|
*/
|
|
|
|
Posts.config.postStatuses = [
|
|
|
|
{
|
|
|
|
value: 1,
|
2016-02-18 11:55:00 +09:00
|
|
|
label: function(){return __('pending');}
|
2015-04-22 07:50:11 +09:00
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 2,
|
2016-02-18 11:55:00 +09:00
|
|
|
label: function(){return __('approved');}
|
2015-04-22 07:50:11 +09:00
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 3,
|
2016-02-18 11:55:00 +09:00
|
|
|
label: function(){return __('rejected');}
|
2015-11-18 15:03:17 +09:00
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 4,
|
2016-02-18 11:55:00 +09:00
|
|
|
label: function(){return __('spam');}
|
2015-11-18 15:03:17 +09:00
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 5,
|
2016-02-18 11:55:00 +09:00
|
|
|
label: function(){return __('deleted');}
|
2015-04-22 07:50:11 +09:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
Posts.config.STATUS_PENDING = 1;
|
|
|
|
Posts.config.STATUS_APPROVED = 2;
|
2015-11-18 15:03:17 +09:00
|
|
|
Posts.config.STATUS_REJECTED = 3;
|
|
|
|
Posts.config.STATUS_SPAM = 4;
|
|
|
|
Posts.config.STATUS_DELETED = 5;
|