diff --git a/app/views/pagy/_nav.html.erb b/app/views/pagy/_nav.html.erb index 1dda448d2..961d6fe5b 100644 --- a/app/views/pagy/_nav.html.erb +++ b/app/views/pagy/_nav.html.erb @@ -14,11 +14,13 @@ page - <% (1..pagy.pages).each do |idx| %> - <% if pagy.page == idx %> -
  • Page <%= idx %> (current page)
  • + <% pagy.series.each do |item| %> + <% if item == :gap %> +
  • ...
  • + <% elsif item.is_a?(String) %> +
  • Page <%= item %> (current page)
  • <% else %> -
  • >Page <%= idx %>
  • +
  • >Page <%= item %>
  • <% end %> <% end %>