lib/templates/foundation_nav.html.erb in pagy-5.1.3 vs lib/templates/foundation_nav.html.erb in pagy-5.2.0

- old
+ new

@@ -11,10 +11,10 @@ <% if pagy.prev -%> <li class="prev"><%== link.call(pagy.prev, pagy_t('pagy.nav.prev'), 'aria-label="previous"') %></li> <% else -%> <li class="prev disabled"><%== pagy_t('pagy.nav.prev') %></li> <% end -%> <% pagy.series.each do |item| # series example: [1, :gap, 7, 8, "9", 10, 11, :gap, 36] -%> <% if item.is_a?(Integer) -%> <li><%== link.call(item) %></li> -<% elsif item.is_a?(String) -%> <li class="current"><%= item %></li> +<% elsif item.is_a?(String) -%> <li class="current"><%= pagy_labeler(pagy, item) %></li> <% elsif item == :gap -%> <li class="ellipsis gap" aria-hidden="true"></li> <% end -%> <% end -%> <% if pagy.next -%> <li class="next"><%== link.call(pagy.next, pagy_t('pagy.nav.next'), 'aria-label="next"') %></li> <% else -%> <li class="next disabled"><%== pagy_t('pagy.nav.next') %></li>