diff options
Diffstat (limited to 'app/views/blog/shared')
-rw-r--r-- | app/views/blog/shared/_post.html.erb | 10 |
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> |