upvote/upvote

View on GitHub
app/views/comments/_comment.html.slim

Summary

Maintainability
Test Coverage
.comment
  = link_to submitted_user_posts_path(comment.user), class: 'comment-author' do
    = image_tag comment.user.avatar
    .info-wrapper
      h2= comment.user.name
      small.user-handle
        = handle_for_user(comment.user)
        span.age=< "about #{distance_of_time_in_words_to_now comment.created_at} ago"
  .comment-body
    = comment.body