mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
12 lines
336 B
JavaScript
12 lines
336 B
JavaScript
Template.post.events = {
|
|
'click .discuss-link': function(){
|
|
this.top_level_comments = Comments.find({post: this._id, parent: null});
|
|
Session.set('selected_post', this);
|
|
Session.set('state', 'view_post');
|
|
}
|
|
};
|
|
|
|
Template.post.ago = function(){
|
|
var submitted = new Date(this.submitted);
|
|
return submitted.toString();
|
|
};
|