aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/posts/_comment.html.erb
blob: 550382623481691603a3ea17268b8cd08b0b5a70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
<article class='blog_comment_message' id='<%= "comment-#{comment.to_param}" %>'>
  <%= image_tag comment.avatar_url, :alt => comment.name, :class => 'avatar' %>
  <%= simple_format auto_link(comment.message.to_s) %>
  <footer class='blog_comment_author'>
    <p>
      <%= t('by', :scope => 'blog.posts.comments', :who => comment.name) %>,
      <%= t('time_ago', :scope => 'blog.posts.comments', :time => time_ago_in_words(comment.created_at)) %>
    </p>
  </footer>
</article>