-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,14 @@ Template.post_page.helpers({ | |
return html_body.autoLink(); | ||
}, | ||
canComment: function(){ | ||
return canComment(Meteor.user()); | ||
var isAccepted = this.status === STATUS_IMPLEMENTED; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
aaronbushnell
Author
|
||
var isRejected = this.status === STATUS_REJECTED; | ||
|
||
if (canComment(Meteor.user()) && !isAccepted && !isRejected) { | ||
return true; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
aaronbushnell
Author
|
||
} | ||
} | ||
}); | ||
}); | ||
|
||
Template.post_page.rendered = function(){ | ||
if((scrollToCommentId=Session.get('scrollToCommentId')) && !this.rendered && $('#'+scrollToCommentId).exists()){ | ||
|
Where are these variables coming from? (
STATUS_*
)