From 85e03415db5591c30fcce6f90b5d2c4107e26101 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 20 Sep 2026 18:36:39 +1200 Subject: [PATCH] Remove a stray Delete link from the garden page A .dropdown-divider and a dropdown-item Delete link sat in the page body, outside any dropdown, duplicating the Delete in the Actions menu. With the menu open the page has two visible Delete links, and the 'Delete garden' spec, which clicks 'Actions' and then 'Delete', finds both. The Actions menu already has the garden's Delete. Co-Authored-By: Claude Sonnet 5 --- app/views/gardens/show.html.haml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/views/gardens/show.html.haml b/app/views/gardens/show.html.haml index c1ad1d7f7..e8117a7a0 100644 --- a/app/views/gardens/show.html.haml +++ b/app/views/gardens/show.html.haml @@ -63,10 +63,6 @@ - if can?(:edit, @garden) .col-md-12 = garden_plant_something_button(@garden) - - - if can?(:destroy, @garden) - .dropdown-divider - = delete_button(@garden, classes: 'dropdown-item text-danger', message: 'gardens.confirm_delete') %section %h2 Current activities in garden