diff --git a/client/templates/comment.html b/client/templates/comment.html index 52edbf7c4..fb2251191 100644 --- a/client/templates/comment.html +++ b/client/templates/comment.html @@ -13,5 +13,12 @@
No comments.
- {{/if}} - diff --git a/client/templates/comments.js b/client/templates/comments.js deleted file mode 100644 index 2cc3cce80..000000000 --- a/client/templates/comments.js +++ /dev/null @@ -1,11 +0,0 @@ -Template.comments.show = function(){ - var post = Session.get('selected_post'); - var comments = Comments.find({ post: post._id }); - return comments.count() > 0; -}; - -Template.comments.comments = function(){ - var post = Session.get('selected_post'); - var comments = Comments.find({ post: post._id }); - return comments; -}; diff --git a/client/templates/selected_post.html b/client/templates/selected_post.html index bedff9a31..8a83cbe70 100644 --- a/client/templates/selected_post.html +++ b/client/templates/selected_post.html @@ -1,11 +1,12 @@ {{#if show}} - {{#with post}}No comments.
+ {{/if}}