mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
12 lines
No EOL
382 B
JavaScript
12 lines
No EOL
382 B
JavaScript
Template.comment_page.post = function(){
|
|
var selectedComment = Comments.findOne(Session.get('selectedCommentId'));
|
|
return selectedComment && Posts.findOne(selectedComment.post);
|
|
};
|
|
|
|
Template.comment_page.helpers({
|
|
comment: function(){
|
|
var comment = Comments.findOne(Session.get('selectedCommentId'));
|
|
Template.comment_page.repress_recursion = true;
|
|
return comment;
|
|
}
|
|
}); |