From 22017f1d2cd27b72917c2c73cfce2f5f4c0ae03d 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 75c0d4dfa..65b6aa0d0 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