mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
15 lines
392 B
JavaScript
15 lines
392 B
JavaScript
![]() |
(function() {
|
||
|
|
||
|
Template.comment_list.has_comments = function(){
|
||
|
var post = Posts.findOne(Session.get('selected_post_id'));
|
||
|
if(post){
|
||
|
return Comments.find({post: post._id, parent: null}).count() > 0;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
Template.comment_list.child_comments = function(){
|
||
|
var post = Posts.findOne(Session.get('selected_post_id'));
|
||
|
return Comments.find({post: post._id, parent: null});
|
||
|
};
|
||
|
|
||
|
})();
|