Files
growstuff/app/views/posts/_single.html.haml
google-labs-jules[bot] 4b9763e1da feat: Add problem tracking feature
This commit introduces a new `Problem` model, analogous to `Crop`, to allow users to track problems they have on their plantings (e.g., aphids on tomatoes).

Key features:
- A new `Problem` model that can be curated by admins (`problem_wranglers`).
- Users can associate problems with their plantings and upload photos of the problems.
- Aggregated problem information is displayed on the crop detail page (e.g., "Problems: aphids (27), blight (13)").
- Users can mention problems in posts (e.g., `[aphids](problem)`), which automatically links to the problem's page.
- Admin functionality for reviewing and approving new problem suggestions.

Resolves merge conflict in app/controllers/plantings_controller.rb
2025-09-07 11:47:53 +00:00

20 lines
417 B
Plaintext

%p
Posted by
- if @post.author
= link_to @post.author.login_name, member_path(@post.author)
- else
Member Deleted
- if @post.forum
in
= link_to @post.forum, @post.forum
on
= @post.created_at.to_fs(:default)
- if @post.updated_at > @post.created_at
and edited at
= @post.updated_at.to_fs(:default)
= link_to "Permalink", post
:markdown
#{ strip_tags markdownify(@post.body) }