mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-31 04:31:01 -05:00
six harvests/plantings on the homepage
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user