diff options
Diffstat (limited to 'app/views/comments/_comment.html.haml')
| -rw-r--r-- | app/views/comments/_comment.html.haml | 14 |
1 files changed, 14 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..225b5d9 --- /dev/null +++ b/app/views/comments/_comment.html.haml | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | .blog-comment{ id: "comment-#{comment.id}" } | ||
| 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") | ||
| 14 | = link_to (image_tag "comment_add.png"), "#", class: "comment-reply-to", title: "Reply to comment", data: { comment_id: comment.id, comment_author: comment.username } | ||
