mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-30 20:51:23 -04:00
Merge pull request #4155 from Growstuff/remove-openfarm.cc
Remove openfarm.cc links
This commit is contained in:
@@ -39,10 +39,6 @@ module OpenFarmData
|
||||
fetch_attr('common_names')
|
||||
end
|
||||
|
||||
def guides_count
|
||||
fetch_attr('guides_count')
|
||||
end
|
||||
|
||||
def binomial_name
|
||||
fetch_attr('binomial_name')
|
||||
end
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
- if crop.guides_count.present? && crop.guides_count.positive?
|
||||
%p
|
||||
There are
|
||||
= link_to "https://openfarm.cc/en/crops/#{CGI.escape @crop.name.gsub(' ', '-').downcase}" do
|
||||
#{crop.guides_count} growing guides on Open Farm
|
||||
|
||||
@@ -74,7 +74,6 @@
|
||||
.card-body
|
||||
%h4 How to grow #{@crop.name.pluralize}
|
||||
= render 'grown_for', crop: @crop
|
||||
= render 'planting_advice', crop: @crop
|
||||
- if @crop.parent
|
||||
%hr/
|
||||
%p.parent-crop
|
||||
@@ -124,13 +123,6 @@
|
||||
= icon 'fas', 'external-link-alt'
|
||||
Wikipedia (English)
|
||||
|
||||
%li.list-group-item
|
||||
= link_to "https://openfarm.cc/en/crops/#{CGI.escape @crop.name.gsub(' ', '-')}",
|
||||
class: 'card-link',
|
||||
target: "_blank",
|
||||
rel: "noopener noreferrer" do
|
||||
= icon 'fas', 'external-link-alt'
|
||||
OpenFarm - Growing guide
|
||||
%li.list-group-item
|
||||
= link_to "https://www.gardenate.com/plant/#{CGI.escape @crop.name}",
|
||||
target: "_blank",
|
||||
|
||||
@@ -76,10 +76,6 @@ describe "crop detail page", :js do
|
||||
expect(page).to have_link "Wikipedia (English)", href: crop.en_wikipedia_url
|
||||
end
|
||||
|
||||
it "has a link to OpenFarm" do
|
||||
expect(page).to have_link "OpenFarm - Growing guide"
|
||||
end
|
||||
|
||||
it "has a link to gardenate" do
|
||||
expect(page).to have_link "Gardenate - Planting reminders",
|
||||
href: "https://www.gardenate.com/plant/#{CGI.escape crop.name}"
|
||||
@@ -144,7 +140,7 @@ describe "crop detail page", :js do
|
||||
let(:crop) { FactoryBot.create(:annual_crop) }
|
||||
|
||||
describe 'with harvests' do
|
||||
include_examples "predicts harvest"
|
||||
it_behaves_like "predicts harvest"
|
||||
end
|
||||
|
||||
it "predicts lifespan" do
|
||||
@@ -165,7 +161,7 @@ describe "crop detail page", :js do
|
||||
end
|
||||
|
||||
describe 'with harvests' do
|
||||
include_examples "predicts harvest"
|
||||
it_behaves_like "predicts harvest"
|
||||
end
|
||||
|
||||
it "describes Perennial crops" do
|
||||
@@ -181,7 +177,7 @@ describe "crop detail page", :js do
|
||||
end
|
||||
|
||||
describe 'with harvests' do
|
||||
include_examples "predicts harvest"
|
||||
it_behaves_like "predicts harvest"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user