From c114f080a964bdbe4a4c3cc9dfa74175a24507a7 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sun, 21 Jan 2024 01:58:53 +0000 Subject: [PATCH] Active only as the following page is active --- app/views/crops/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/crops/show.html.haml b/app/views/crops/show.html.haml index 7053eb80e..9084bdbef 100644 --- a/app/views/crops/show.html.haml +++ b/app/views/crops/show.html.haml @@ -86,7 +86,7 @@ = link_to crop_plantings_path(@crop), class: 'card-link' do = planting_icon #{@crop.name.capitalize} plantings - %span.badge.badge-primary.badge-pill=@crop.plantings.size + %span.badge.badge-primary.badge-pill=@crop.plantings.active.size .list-group-item.d-flex.justify-content-between.align-items-center = link_to crop_harvests_path(@crop), class: 'card-link' do = harvest_icon