diff --git a/client/views/posts/post_edit.html b/client/views/posts/post_edit.html index 3242014f6..fe257c863 100644 --- a/client/views/posts/post_edit.html +++ b/client/views/posts/post_edit.html @@ -24,6 +24,7 @@
+ {{#if categoriesEnabled}}
@@ -34,6 +35,7 @@ {{/each}}
+ {{/if}} {{#if isAdmin}}
diff --git a/client/views/posts/post_edit.js b/client/views/posts/post_edit.js index a492f5ad5..16c342159 100644 --- a/client/views/posts/post_edit.js +++ b/client/views/posts/post_edit.js @@ -23,6 +23,9 @@ Template.post_edit.helpers({ return category; }); }, + categoriesEnabled: function(){ + return Categories.find().count(); + }, isApproved: function(){ return this.status == STATUS_APPROVED; }, diff --git a/client/views/posts/post_submit.html b/client/views/posts/post_submit.html index 6cff23ae4..9188976bf 100644 --- a/client/views/posts/post_submit.html +++ b/client/views/posts/post_submit.html @@ -14,6 +14,7 @@