Growstuff/growstuff

View on GitHub
app/views/posts/_comments.html.haml

Summary

Maintainability
Test Coverage
%a{ name: "comments" }
- if post.comments
  %hr/
  %h2
    = comment_icon
    = localize_plural(post.comments, Comment)
  - post.comments.post_order.each do |comment|
    = render "comments/single", comment: comment

- else
  %h2 There are no comments yet