mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-17 22:07:49 -05:00
Added scope "post_order" to order them ASC for display on post page. Also tweaked post/comment views a bit.
12 lines
253 B
Plaintext
12 lines
253 B
Plaintext
%a{:name => "comments"}
|
|
- if post.comments
|
|
%h2
|
|
=pluralize(post.comments.length, "comment")
|
|
- post.comments.post_order.each do |c|
|
|
= render :partial => "comments/single", :locals => { :comment => c }
|
|
|
|
- else
|
|
%h2 There are no comments yet
|
|
|
|
|