about summary refs log tree commit diff stats
path: root/app/views/comments/_comment.html.haml
blob: 3ad21e97d0ddc16bf10362513e4de6e24247b49a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
.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")