mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
18 lines
No EOL
443 B
JavaScript
18 lines
No EOL
443 B
JavaScript
Template[getTemplate('posts_list')].helpers({
|
|
post_item: function () {
|
|
return getTemplate('post_item');
|
|
},
|
|
posts : function () {
|
|
if(this.postsList){ // XXX
|
|
this.postsList.rewind();
|
|
var posts = this.postsList.map(function (post, index, cursor) {
|
|
post.rank = index;
|
|
return post;
|
|
});
|
|
return posts;
|
|
}
|
|
},
|
|
postsLoadMore: function () {
|
|
return getTemplate('postsLoadMore');
|
|
}
|
|
}); |