2015-05-07 18:54:46 +09:00
|
|
|
Template.user_posts.helpers({
|
|
|
|
arguments: function () {
|
|
|
|
var user = this;
|
|
|
|
return {
|
|
|
|
template: "posts_list_compact",
|
2015-05-08 09:20:22 +09:00
|
|
|
options: {
|
|
|
|
currentUser: user,
|
|
|
|
fieldLabel: i18n.t("postedAt"),
|
|
|
|
fieldValue: function (post) {
|
|
|
|
return moment(post.postedAt).format("MM/DD/YYYY, HH:mm");
|
|
|
|
}
|
|
|
|
},
|
2015-05-07 18:54:46 +09:00
|
|
|
terms: {
|
|
|
|
view: 'userPosts',
|
|
|
|
userId: user._id,
|
2015-08-12 10:52:02 +09:00
|
|
|
limit: 5,
|
|
|
|
enableCache: false,
|
|
|
|
subscribeToUsers: false
|
2015-05-07 18:54:46 +09:00
|
|
|
}
|
2015-08-12 10:52:02 +09:00
|
|
|
};
|
2014-12-08 14:53:26 +09:00
|
|
|
}
|
2015-05-07 18:54:46 +09:00
|
|
|
});
|