mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
23 lines
No EOL
527 B
JavaScript
23 lines
No EOL
527 B
JavaScript
Template.user_posts.helpers({
|
|
arguments: function () {
|
|
var user = this;
|
|
var args = {
|
|
template: "posts_list_compact",
|
|
options: {
|
|
currentUser: user,
|
|
fieldLabel: i18n.t("postedAt"),
|
|
fieldValue: function (post) {
|
|
return moment(post.postedAt).format("MM/DD/YYYY, HH:mm");
|
|
}
|
|
},
|
|
terms: {
|
|
view: 'userPosts',
|
|
userId: user._id,
|
|
limit: 5,
|
|
enableCache: false,
|
|
subscribeToUsers: false
|
|
}
|
|
};
|
|
return args;
|
|
}
|
|
}); |