about summary refs log tree commit diff stats
path: root/app/views/comments/_comment.html.haml
blob: 225b5d9bda9ba61fcf7b74da9ab713e37dd6da35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.blog-comment{ id: "comment-#{comment.id}" }
  %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")
    = link_to (image_tag "comment_add.png"), "#", class: "comment-reply-to", title: "Reply to comment", data: { comment_id: comment.id, comment_author: comment.username }