From b19586dd1dd585edf4e3bab4a6a5dc7b651bbbbd Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sat, 18 May 2019 21:42:12 +1200 Subject: [PATCH] six harvests/plantings on the homepage --- app/views/home/_harvests.html.haml | 2 +- app/views/home/_plantings.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/home/_harvests.html.haml b/app/views/home/_harvests.html.haml index e83a7698e..aab9c71d4 100644 --- a/app/views/home/_harvests.html.haml +++ b/app/views/home/_harvests.html.haml @@ -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 diff --git a/app/views/home/_plantings.html.haml b/app/views/home/_plantings.html.haml index ecbcc23de..82f68f0bf 100644 --- a/app/views/home/_plantings.html.haml +++ b/app/views/home/_plantings.html.haml @@ -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