Skip to content

Commit

Permalink
Merge pull request #3845 from Growstuff/only-show-active
Browse files Browse the repository at this point in the history
Avoid showing plantings which are finished
  • Loading branch information
CloCkWeRX authored Sep 29, 2024
2 parents 46b3360 + 79ef734 commit 6987681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/gardens/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
Why not
= link_to 'tell us more.', edit_garden_path(@garden)

- if @garden.plantings.where.not(planted_at: nil).any?
- if @garden.plantings.active.any?
%section.card
%h2 Garden progress
.card-body
Expand Down

0 comments on commit 6987681

Please sign in to comment.