# See the Pagy Extras documentation: https://ddnexus.github.io/pagy/extras class Pagy # Add nav helpers for compact pagination module Frontend # Generic compact pagination: it returns the html with the series of links to the pages # we use a numeric input tag to set the page and the PagyCompact javascript to navigate def pagy_nav_compact(pagy, id=caller(1,1)[0].hash) tags = ''; link = pagy_link_proc(pagy) tags << %() end # Compact pagination for bootstrap: it returns the html with the series of links to the pages # we use a numeric input tag to set the page and the PagyCompact javascript to navigate def pagy_nav_bootstrap_compact(pagy, id=caller(1,1)[0].hash) tags = ''; link = pagy_link_proc(pagy) tags << %() end end end