mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
22 lines
No EOL
525 B
JavaScript
22 lines
No EOL
525 B
JavaScript
Template.user_comments.helpers({
|
|
arguments: function () {
|
|
var user = this;
|
|
return {
|
|
template: "comments_list_compact",
|
|
options: {
|
|
currentUser: user,
|
|
fieldLabel: i18n.t("commentedAt"),
|
|
fieldValue: function (comment) {
|
|
return moment(comment.createdAt).format("MM/DD/YYYY, HH:mm");
|
|
}
|
|
},
|
|
terms: {
|
|
view: 'userComments',
|
|
userId: user._id,
|
|
limit: 5,
|
|
enableCache: false,
|
|
subscribeToUsers: false
|
|
}
|
|
};
|
|
}
|
|
}); |