diff --git a/app/views/pagy/_nav.html.erb b/app/views/pagy/_nav.html.erb index bd470b336..bf09380db 100644 --- a/app/views/pagy/_nav.html.erb +++ b/app/views/pagy/_nav.html.erb @@ -1,19 +1,19 @@ <% link = pagy_link_proc(pagy) -%> - +<% if pagy.pages > 1 %> + - - - <% if pagy.prev %> - > - <% end %> - - - - Previous - page - - - <% if pagy.pages > 1 %> + + + <% if pagy.prev %> + > + <% end %> + + + + Previous + page + + <% (1..pagy.pages).each do |idx| %> <% if pagy.page == idx %> Page <%= idx %> (current page) @@ -36,5 +36,5 @@ Showing <%= pagy.from %> to <%= pagy.to %> of <%= pagy.count %> <%= item_name %> - <% end %> - + +<% end %>
Showing <%= pagy.from %> to <%= pagy.to %> of <%= pagy.count %> <%= item_name %>