mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
fixed users page breaking
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
%nav.pagy_nav.pagination{"aria-label" => "pager", :role => "navigation"}
|
||||
- if pagy.prev
|
||||
%span.page.prev!= link.call(pagy.prev, t(:previous), 'aria-label="previous"')
|
||||
%span.page.prev!= link.call(pagy.prev, t(:previous))
|
||||
- else
|
||||
%span.page.prev.disabled!= t(:previous)
|
||||
- pagy.series.each do |item| # series example: [1, :gap, 7, 8, "9", 10, 11, :gap, 36]
|
||||
@@ -14,6 +14,6 @@
|
||||
- elsif item == :gap # page gap
|
||||
%span.page.gap …
|
||||
- if pagy.next
|
||||
%span.page.next!= link.call(pagy.next, t(:next), 'aria-label="next"')
|
||||
%span.page.next!= link.call(pagy.next, t(:next))
|
||||
- else
|
||||
%span.page.next.disabled!= t(:next)
|
||||
|
||||
Reference in New Issue
Block a user