mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-13 19:38:56 -04:00
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
10 lines
317 B
Plaintext
10 lines
317 B
Plaintext
- if member.latitude && member.longitude
|
|
#membermap.member-map
|
|
%p.text-right
|
|
See other members, plantings, seeds and more near
|
|
= link_to member.location, place_path(member.location, anchor: "members")
|
|
- else
|
|
.location-not-set
|
|
.sr-only Location not known
|
|
.sr-only We can't show you what's nearby
|