)
html << (p_prev ? link.call(p_prev, pagy_t('pagy.nav.prev'), 'aria-label="previous" class="prev btn btn-primary"')
: %(
#{pagy_t('pagy.nav.prev')}))
- input = %(
)
+ input = %(
)
html << %(
#{pagy_t('pagy.compact.page')} #{input} #{pagy_t('pagy.compact.of')} #{p_pages}
)
html << (p_next ? link.call(p_next, pagy_t('pagy.nav.next'), 'aria-label="next" class="next btn btn-primary"')
: %(
#{pagy_t('pagy.nav.next')}))
diff --git a/test/pagy/extras/bootstrap_test.rb b/test/pagy/extras/bootstrap_test.rb
index 8c9f58373..cc110bd5e 100644
--- a/test/pagy/extras/bootstrap_test.rb
+++ b/test/pagy/extras/bootstrap_test.rb
@@ -102,21 +102,21 @@
pagy, _ = @array.pagy(1)
html, id = frontend.pagy_nav_compact_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
- "
"
+ "
"
end
it 'renders page 3 for bootstrap' do
pagy, _ = @array.pagy(3)
html, id = frontend.pagy_nav_compact_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
- "
"
+ "
"
end
it 'renders page 6 for bootstrap' do
pagy, _ = @array.pagy(6)
html, id = frontend.pagy_nav_compact_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
- "
"
+ "
"
end
end
diff --git a/test/pagy/extras/trim_test.rb b/test/pagy/extras/trim_test.rb
index b8a3af4f2..1b15fb815 100644
--- a/test/pagy/extras/trim_test.rb
+++ b/test/pagy/extras/trim_test.rb
@@ -78,21 +78,21 @@
pagy, _ = @array.pagy(1)
html, id = frontend.pagy_nav_compact_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
- "
"
+ "
"
end
it 'renders page 3 for bootstrap' do
pagy, _ = @array.pagy(3)
html, id = frontend.pagy_nav_compact_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
- "
"
+ "
"
end
it 'renders page 6 for bootstrap' do
pagy, _ = @array.pagy(6)
html, id = frontend.pagy_nav_compact_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
- "
"
+ "
"
end
end