Active only as the following page is active

This commit is contained in:
Daniel O'Connor
2024-01-21 01:58:53 +00:00
parent 4aae30309b
commit c114f080a9

View File

@@ -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