mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-11 18:38:50 -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
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
= form_for(resource, as: resource_name,
|
|
url: registration_path(resource_name) + '#apps',
|
|
html: { method: :put, class: 'form-horizontal' }) do |_f|
|
|
%br/
|
|
= render 'devise/shared/error_messages', resource: resource
|
|
.row
|
|
.col-md-12
|
|
%p
|
|
= image_tag "twitter_32.png", size: "32x32", alt: 'Twitter logo'
|
|
- if @twitter_auth
|
|
You are connected to Twitter as
|
|
= link_to @twitter_auth.name, "https://twitter.com/#{@twitter_auth.name}"
|
|
= link_to "Disconnect", @twitter_auth,
|
|
confirm: "Are you sure you want to remove this connection?",
|
|
method: :delete, class: "remove btn btn-danger"
|
|
- else
|
|
= link_to 'Connect to Twitter', '/members/auth/twitter', class: 'btn'
|
|
|
|
.row
|
|
.col-md-12
|
|
%p
|
|
= image_tag "flickr_32.png", size: "32x32", alt: 'Flickr logo'
|
|
- if @flickr_auth
|
|
You are connected to Flickr as
|
|
= link_to @flickr_auth.name, "https://flickr.com/photos/#{@flickr_auth.uid}"
|
|
= link_to "Disconnect", @flickr_auth,
|
|
confirm: "Are you sure you want to remove this connection?",
|
|
method: :delete, class: "remove btn btn-danger"
|
|
- else
|
|
= link_to 'Connect to Flickr', '/members/auth/flickr', class: 'btn'
|