From 786cb06c7d4d5158ebd0f7e85c20593ad315cf28 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 29 Jun 2021 12:30:39 +0100 Subject: [PATCH] Drop duplicate pagination buttons on top of tax zones config page Showing these buttons at both the top and bottom is inconsistent with other pages like admin/users that have a similar layout and UI; they only show the buttons on the bottom. --- app/views/spree/admin/zones/index.html.haml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/spree/admin/zones/index.html.haml b/app/views/spree/admin/zones/index.html.haml index 89b05246fb..fd872f2494 100644 --- a/app/views/spree/admin/zones/index.html.haml +++ b/app/views/spree/admin/zones/index.html.haml @@ -7,9 +7,6 @@ %li = button_link_to t("spree.new_zone"), new_object_url, icon: 'icon-plus', id: 'admin_new_zone_link' -- _with_routes Spree::Core::Engine.routes do - = pagy_nav @pagy - - if @zones.empty? .no-objects-found = t("spree.none") @@ -39,5 +36,6 @@ %td.actions = link_to_edit zone, no_text: true = link_to_delete zone, no_text: true + - _with_routes Spree::Core::Engine.routes do = pagy_nav @pagy