From 91cf588a07146ff3f90415bf0149e750d11be911 Mon Sep 17 00:00:00 2001 From: Yuka Kato Date: Fri, 2 Sep 2016 16:07:00 +0900 Subject: [PATCH] Apply CSS class --- app/views/posts/show.html.slim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/posts/show.html.slim b/app/views/posts/show.html.slim index 388fd4d..6a067f2 100644 --- a/app/views/posts/show.html.slim +++ b/app/views/posts/show.html.slim @@ -16,8 +16,14 @@ = @post.created_at - @comments.each do |comment| - = comment.commented_by.nickname - == sanitize(auto_link(markdown_to_html(emojify(comment.body)))) + .comment + .author + .author__nickname + = comment.commented_by.nickname + .author__created-at + = comment.created_at + .comment__body + == sanitize(auto_link(markdown_to_html(emojify(comment.body)))) .row .col.s12