Vulcan/client/views/notification_item.js

14 lines
293 B
JavaScript
Raw Normal View History

2012-10-04 13:30:57 +09:00
Template.notification_item.helpers({
nice_time: function(){
return moment(this.timestamp).fromNow();
},
properties: function(){
return this.properties;
},
2012-10-04 14:54:26 +09:00
isNewComment: function(){
return this.event=="newComment";
2012-10-04 13:30:57 +09:00
},
2012-10-04 14:54:26 +09:00
isNewReply: function(){
return this.event=="newReply";
2012-10-04 13:30:57 +09:00
}
});