Vulcan/packages/telescope-posts/lib/client/templates/post_item.js

15 lines
341 B
JavaScript
Raw Normal View History

Template.post_item.helpers({
postClass: function () {
var post = this;
var postClass = "post ";
postClass += "author-"+Telescope.utils.slugify(post.author)+" ";
if (this.sticky) {
postClass += "sticky ";
}
2015-08-03 20:02:54 +09:00
postClass = Telescope.callbacks.run("postClass", postClass, post);
return postClass;
}
2012-10-01 14:52:32 +09:00
});