diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-12 17:10:34 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-12 17:10:34 -0400 |
commit | 835af696703484208882a70cc5dd47c5838ecf58 (patch) | |
tree | 8174d5b8c6f2486da56569bad361dd10aa1183f8 /app/views/comments/_comment.html.haml | |
parent | b24e6f58a525fc576e23ef9d498745e64c16cd6c (diff) | |
download | thoughts-835af696703484208882a70cc5dd47c5838ecf58.tar.gz thoughts-835af696703484208882a70cc5dd47c5838ecf58.tar.bz2 thoughts-835af696703484208882a70cc5dd47c5838ecf58.zip |
Added blog post commenting
Diffstat (limited to 'app/views/comments/_comment.html.haml')
-rw-r--r-- | app/views/comments/_comment.html.haml | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ | |||
1 | .blog-comment | ||
2 | %blockquote.bubble.rounded.bottom | ||
3 | = image_tag comment.gravatar_url, class: "comment-avatar" | ||
4 | = markdown(comment.body, { restricted: true }) | ||
5 | .clear | ||
6 | %cite.bubble | ||
7 | %strong | ||
8 | - if comment.website.empty? | ||
9 | = comment.username | ||
10 | - else | ||
11 | = link_to comment.username, comment.website | ||
12 | on | ||
13 | = comment.published_at.strftime("%B #{comment.published_at.day.ordinalize}, %Y at %-I:%M:%S%P") | ||