mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
19 lines
No EOL
495 B
JavaScript
19 lines
No EOL
495 B
JavaScript
(function() {
|
|
|
|
Template.comment_list.has_comments = function(){
|
|
var post = Posts.findOne(Session.get('selectedPostId'));
|
|
if(post){
|
|
return Comments.find({post: post._id, parent: null}).count() > 0;
|
|
}
|
|
};
|
|
|
|
Template.comment_list.child_comments = function(){
|
|
var post = Posts.findOne(Session.get('selectedPostId'));
|
|
return Comments.find({post: post._id, parent: null}, {sort: {score: -1, submitted: -1}});
|
|
};
|
|
|
|
Template.comment_list.rendered = function(){
|
|
// t("comment_list");
|
|
}
|
|
|
|
})(); |