From dbc5a055dd675d2dc183afa750c65c2ddb4edfb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chr=C4=B1s=20Seelus?= Date: Tue, 29 May 2018 12:24:02 +0200 Subject: [PATCH] Add prev/next links to compact Bootstrap nav and improve HTML semantics (#21) --- lib/pagy/extras/compact.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/pagy/extras/compact.rb b/lib/pagy/extras/compact.rb index 34b8e14cf..9a4b0493e 100644 --- a/lib/pagy/extras/compact.rb +++ b/lib/pagy/extras/compact.rb @@ -27,21 +27,21 @@ def pagy_nav_compact(pagy, id=caller(1,1)[0].hash) # 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, 'class="btn btn-primary"') + tags = ''; link = pagy_link_proc(pagy) tags << %() end