diff --git a/lib/pagy/extras/materialize.rb b/lib/pagy/extras/materialize.rb index 7f9224d0d..fe5328afb 100644 --- a/lib/pagy/extras/materialize.rb +++ b/lib/pagy/extras/materialize.rb @@ -49,14 +49,14 @@ def pagy_materialize_combo_nav_js(pagy, deprecated_id=nil, pagy_id: nil, link_ex style = ' style="vertical-align: middle"' input = %() - %(#{ - pagy_materialize_prev_html pagy, link, style + pagy_materialize_prev_html pagy, link, style }
  • #{ - pagy_t 'pagy.combo_nav_js', page_input: input, count: p_page, pages: p_pages + pagy_t 'pagy.combo_nav_js', page_input: input, count: p_page, pages: p_pages }
  • #{ - pagy_materialize_next_html pagy, link, style + pagy_materialize_next_html pagy, link, style }) end diff --git a/test/pagy/extras/materialize_test.rb.yml b/test/pagy/extras/materialize_test.rb.yml index a58675ea7..8e02af2cd 100644 --- a/test/pagy/extras/materialize_test.rb.yml +++ b/test/pagy/extras/materialize_test.rb.yml @@ -1,23 +1,4 @@ --- -pagy/extras/materialize::#pagy_materialize_nav#test_0003_renders last page 1: -pagy/extras/materialize::#pagy_materialize_nav#test_0003_renders last page 2: pagy/extras/materialize::#pagy_materialize_nav#test_0001_renders first page 1: +pagy/extras/materialize::#pagy_materialize_nav#test_0003_renders last page 1: +pagy/extras/materialize::#pagy_materialize_nav#test_0003_renders last page 2: pagy/extras/materialize::#pagy_materialize_nav#test_0002_renders intermediate page 1: -pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0001_renders first page 1: '' -pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0001_renders first page 2: '' -pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0002_renders intermediate page 1: '' -pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0002_renders intermediate page 2: '' -pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0003_renders last page 1: '' -pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0003_renders last page 2: '' -pagy/extras/materialize::#pagy_materialize_nav_js#test_0001_renders first page 1: -pagy/extras/materialize::#pagy_materialize_nav_js#test_0001_renders first page 2: pagy/extras/materialize::#pagy_materialize_nav_js#test_0002_renders intermediate page 1: +pagy/extras/materialize::#pagy_materialize_nav_js#test_0001_renders first page 1: +pagy/extras/materialize::#pagy_materialize_nav_js#test_0001_renders first page 2: pagy/extras/materialize::#pagy_materialize_nav_js#test_0003_renders last page 1: +pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0003_renders last page 1: '' +pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0003_renders last page 2: '' +pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0001_renders first page 1: '' +pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0001_renders first page 2: '' +pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0002_renders intermediate page 1: '' +pagy/extras/materialize::#pagy_materialize_combo_nav_js#test_0002_renders intermediate page 2: ''