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.
This commit is contained in:
Matt-Yorkley
2021-06-29 12:30:39 +01:00
parent 60595059e2
commit 786cb06c7d

View File

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