mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 02:33:03 -04:00
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.
14 lines
593 B
Plaintext
14 lines
593 B
Plaintext
%h1 Data Improvement
|
|
|
|
- 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|
|
|
%li{class: "nav-item #{('active' if @active_tab == key.to_s)}"}
|
|
= link_to value, data_improvement_crops_path(tab: key)
|
|
|
|
.tab-content
|
|
.tab-pane.active
|
|
%h2= "Crops without #{tabs[@active_tab.to_sym]}"
|
|
= render 'crop_list', crops: @crops
|