mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
29 lines
705 B
JavaScript
29 lines
705 B
JavaScript
var post = {};
|
|
|
|
Template.post_item.created = function () {
|
|
post = this.data;
|
|
};
|
|
|
|
Template.post_item.helpers({
|
|
postModules: function () {
|
|
return postModules;
|
|
},
|
|
moduleContext: function () { // not used for now
|
|
var module = this;
|
|
module.templateClass = Telescope.utils.camelToDash(this.template) + ' ' + this.position + ' cell';
|
|
module.post = post;
|
|
return module;
|
|
},
|
|
moduleClass: function () {
|
|
return Telescope.utils.camelToDash(this.template) + ' post-module';
|
|
},
|
|
postClass: function () {
|
|
var post = this;
|
|
var postAuthorClass = "author-"+post.author;
|
|
|
|
|
|
var postClass = Telescope.runCallbacks("postClass", postAuthorClass);
|
|
|
|
return postClass;
|
|
}
|
|
});
|