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({
|
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
|
|
|
},
|
2015-01-19 11:40:27 +09:00
|
|
|
postClass: function () {
|
|
|
|
var post = this;
|
2015-06-18 16:46:45 +09:00
|
|
|
var postClass = "author-"+Telescope.utils.slugify(post.author);
|
|
|
|
postClass = Telescope.callbacks.run(post, postClass);
|
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
|
|
|
});
|