mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-29 18:28:28 -04:00
* Add comment support for plantings - Add polymorphic comments association, subject, and author methods to Planting. - Add comments_count column migration for Planting counter cache. - Update CommentsController and comments view templates to support Planting. - Render comments list and form on Planting show view. - Add specs for Planting comments in models, controllers, and requests. Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com> * put 4.0.7 back * Opt comments on posts into record-page styling temporarily * Drop hr * Flatten comments * Update schema --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Brenda Wallace <brenda@wallace.net.nz>
11 lines
270 B
Plaintext
11 lines
270 B
Plaintext
%a{ name: "comments" }
|
|
- if commentable.comments
|
|
%h2
|
|
= comment_icon
|
|
= localize_plural(commentable.comments, Comment)
|
|
- commentable.comments.post_order.each do |comment|
|
|
= render "comments/single", comment: comment
|
|
|
|
- else
|
|
%h2 There are no comments yet
|