mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -05:00
11 lines
259 B
JavaScript
11 lines
259 B
JavaScript
Template.post.events = {
|
|
'click .discuss-link': function(){
|
|
Session.set('selected_post', this);
|
|
Session.set('state', 'view_post');
|
|
}
|
|
};
|
|
|
|
Template.post.ago = function(){
|
|
var submitted = new Date(this.submitted);
|
|
return submitted.toString();
|
|
};
|