aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/shared/_post.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/blog/shared/_post.html.erb')
-rw-r--r--app/views/blog/shared/_post.html.erb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb
index 16483a5..2bc71e0 100644
--- a/app/views/blog/shared/_post.html.erb
+++ b/app/views/blog/shared/_post.html.erb
@@ -26,10 +26,12 @@
<%= link_to t('blog.shared.posts.read_more'), blog_post_url(post) %>
<aside class='comment_count'>
- <% if post.comments.any? %>
- (<%= pluralize(post.comments.approved.count, t('blog.shared.comments.singular')) %>)
- <% else %>
- (<%= t('blog.shared.comments.none') %>)
+ <% if BlogPost.comments_allowed? %>
+ <% if post.comments.any? %>
+ (<%= pluralize(post.comments.approved.count, t('blog.shared.comments.singular')) %>)
+ <% else %>
+ (<%= t('blog.shared.comments.none') %>)
+ <% end %>
<% end %>
</aside>
</p>