From 835af696703484208882a70cc5dd47c5838ecf58 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 12 Oct 2023 17:10:34 -0400 Subject: Added blog post commenting --- app/views/comments/_comment.html.haml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/views/comments/_comment.html.haml (limited to 'app/views/comments/_comment.html.haml') diff --git a/app/views/comments/_comment.html.haml b/app/views/comments/_comment.html.haml new file mode 100644 index 0000000..3e10759 --- /dev/null +++ b/app/views/comments/_comment.html.haml @@ -0,0 +1,13 @@ +.blog-comment + %blockquote.bubble.rounded.bottom + = image_tag comment.gravatar_url, class: "comment-avatar" + = markdown(comment.body, { restricted: true }) + .clear + %cite.bubble + %strong + - if comment.website.empty? + = comment.username + - else + = link_to comment.username, comment.website + on + = comment.published_at.strftime("%B #{comment.published_at.day.ordinalize}, %Y at %-I:%M:%S%P") -- cgit 1.4.1