mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
20 lines
No EOL
464 B
JavaScript
20 lines
No EOL
464 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
|
|
}
|
|
};
|
|
}
|
|
}); |