six harvests/plantings on the homepage

This commit is contained in:
Brenda Wallace
2019-05-18 21:42:12 +12:00
parent f019969240
commit b19586dd1d
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
%section.harvests
%h5= t('.recently_harvested')
- Harvest.has_photos.recent.includes(:crop, :owner, :photos).limit(3).each do |harvest|
- Harvest.has_photos.recent.includes(:crop, :owner, :photos).limit(6).each do |harvest|
.card
= link_to harvest, class: 'list-group-item list-group-item-action flex-column align-items-start' do
.d-flex.w-100.justify-content-between

View File

@@ -1,7 +1,7 @@
%section.plantings
%h5= t('.recently_planted')
- Planting.has_photos.recent.includes(:crop, garden: :owner).limit(3).each do |planting|
- Planting.has_photos.recent.includes(:crop, garden: :owner).limit(6).each do |planting|
.card
= link_to planting, class: 'list-group-item list-group-item-action flex-column align-items-start' do
.d-flex.w-100.justify-content-between