lib/templates/foundation_nav.html.slim in pagy-5.2.3 vs lib/templates/foundation_nav.html.slim in pagy-5.3.0
- old
+ new
@@ -20,10 +20,10 @@
- if item.is_a?(Integer) # page link
li == link.call(item)
- elsif item.is_a?(String) # current page
li.current
- = pagy_labeler(pagy, item)
+ = pagy.label_for(item)
- elsif item == :gap # page gap
li.ellipsis.gap aria-hidden="true"
- if pagy.next