2014-07-04 14:07:50 +09:00
|
|
|
var post = {};
|
|
|
|
|
2015-04-13 14:52:03 +09:00
|
|
|
Template.post_item.created = function () {
|
2014-07-04 14:07:50 +09:00
|
|
|
post = this.data;
|
2013-10-28 13:35:20 +09:00
|
|
|
};
|
2012-09-04 18:57:07 +09:00
|
|
|
|
2015-04-13 14:52:03 +09:00
|
|
|
Template.post_item.helpers({
|
2015-04-23 17:45:37 +09:00
|
|
|
postComponents: function () {
|
|
|
|
return Telescope.getModules("postComponents");
|
2013-10-25 11:23:16 +09:00
|
|
|
},
|
2014-07-08 09:06:49 +09:00
|
|
|
moduleContext: function () { // not used for now
|
|
|
|
var module = this;
|
2015-04-20 13:57:37 +09:00
|
|
|
module.templateClass = Telescope.utils.camelToDash(this.template) + ' ' + this.position + ' cell';
|
2014-07-08 09:06:49 +09:00
|
|
|
module.post = post;
|
|
|
|
return module;
|
2014-07-07 11:51:59 +09:00
|
|
|
},
|
2014-07-07 12:22:42 +09:00
|
|
|
moduleClass: function () {
|
2015-04-20 13:57:37 +09:00
|
|
|
return Telescope.utils.camelToDash(this.template) + ' post-module';
|
2015-01-19 11:40:27 +09:00
|
|
|
},
|
|
|
|
postClass: function () {
|
|
|
|
var post = this;
|
2015-01-21 10:38:59 +09:00
|
|
|
var postAuthorClass = "author-"+post.author;
|
2015-01-20 16:08:10 +09:00
|
|
|
|
2015-04-23 15:42:05 +09:00
|
|
|
|
|
|
|
var postClass = Telescope.runCallbacks("postClass", postAuthorClass);
|
2015-04-13 16:29:33 +09:00
|
|
|
|
2015-01-19 11:40:27 +09:00
|
|
|
return postClass;
|
2013-04-25 22:11:26 -07:00
|
|
|
}
|
2012-10-01 14:52:32 +09:00
|
|
|
});
|