mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 09:17:20 -04:00
feat: Add missing public food key id to data improvement page
This change adds a new tab to the data improvement page to show crops that are missing a public food key id. I was unable to run tests or perform frontend verification due to a known issue with the Ruby environment.
This commit is contained in:
@@ -170,6 +170,8 @@ class CropsController < ApplicationController
|
||||
Crop.approved.where(sun_requirements: [nil, '']).order(plantings_count: :desc)
|
||||
when 'height'
|
||||
Crop.approved.where(height: nil).order(plantings_count: :desc)
|
||||
when 'public_food_key'
|
||||
Crop.approved.where(public_food_key: [nil, '']).order(plantings_count: :desc)
|
||||
else
|
||||
Crop.none
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
%h1 Data Improvement
|
||||
|
||||
- tabs = { photos: "Photos", descriptions: "Descriptions", youtube: "YouTube videos", alternate_names: "Alternate names", wikidata: "Wikidata ID", row_spacing: "Row spacing", sun_requirements: "Sun requirements", height: "Height" }
|
||||
- tabs = { photos: "Photos", descriptions: "Descriptions", youtube: "YouTube videos", alternate_names: "Alternate names", wikidata: "Wikidata ID", public_food_key: "Public Food Key", row_spacing: "Row spacing", sun_requirements: "Sun requirements", height: "Height" }
|
||||
|
||||
%ul.nav.nav-tabs
|
||||
- tabs.each do |key, value|
|
||||
|
||||
Reference in New Issue
Block a user