|
@@ -5,6 +5,7 @@
|
|
// subscribe to read data
|
|
// subscribe to read data
|
|
Meteor.subscribe("documents");
|
|
Meteor.subscribe("documents");
|
|
Meteor.subscribe("editingUsers");
|
|
Meteor.subscribe("editingUsers");
|
|
|
|
+Meteor.subscribe("comments");
|
|
|
|
|
|
Router.configure({
|
|
Router.configure({
|
|
layoutTemplate: "ApplicationLayout"
|
|
layoutTemplate: "ApplicationLayout"
|
|
@@ -91,6 +92,12 @@ Template.insertCommentForm.helpers({
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+Template.commentList.helpers({
|
|
|
|
+ comments: function () {
|
|
|
|
+ return Comments.find({ docid: Session.get("docid") });
|
|
|
|
+ }
|
|
|
|
+});
|
|
|
|
+
|
|
Template.docMeta.helpers({
|
|
Template.docMeta.helpers({
|
|
// Find current document.
|
|
// Find current document.
|
|
document: function () {
|
|
document: function () {
|