From 586cdef0edb46e10feb7d7b81d9d56cd5344d14d Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 19 May 2019 11:50:28 +1200 Subject: [PATCH] Tidy up comments display --- app/views/posts/_comments.html.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/posts/_comments.html.haml b/app/views/posts/_comments.html.haml index 91f2e6323..5efad7aae 100644 --- a/app/views/posts/_comments.html.haml +++ b/app/views/posts/_comments.html.haml @@ -1,11 +1,12 @@ %a{ name: "comments" } - if post.comments + %hr/ %h2 + = comment_icon = localize_plural(post.comments, Comment) - - post.comments.post_order.each do |c| - = render partial: "comments/single", locals: { comment: c } + - post.comments.post_order.each do |comment| + = render "comments/single", comment: comment - else %h2 There are no comments yet -