|
@@ -53,6 +53,12 @@ if (Meteor.isClient) {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ Template.task.helpers({
|
|
|
|
+ isOwner: function () {
|
|
|
|
+ return this.owner === Meteor.userId();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
Template.task.events({
|
|
Template.task.events({
|
|
'click .delete': function (e) {
|
|
'click .delete': function (e) {
|
|
Meteor.call('deleteTask', this._id);
|
|
Meteor.call('deleteTask', this._id);
|