Skip to content

Commit

Permalink
reorganization of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Aug 20, 2018
1 parent cd11c4f commit f093c7e
Show file tree
Hide file tree
Showing 8 changed files with 358 additions and 553 deletions.
68 changes: 67 additions & 1 deletion test/pagy/extras/bootstrap_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/bootstrap'

SingleCov.covered!
SingleCov.covered!(uncovered: 1) # undefined TRIM for compact helper, tested in trim_test

describe Pagy::Frontend do

Expand Down Expand Up @@ -92,4 +92,70 @@

end

describe "#pagy_nav_compact_bootstrap" do

before do
@array = (1..103).to_a.extend(Pagy::Array::PageMethod)
end

it 'renders page 1 for bootstrap' do
pagy, _ = @array.pagy(1)
html, id = frontend.pagy_nav_compact_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-compact-bootstrap pagination\" role=\"navigation\" aria-label=\"pager\"><a href=\"/foo?page=#{Pagy::Frontend::MARKER}\" style=\"display: none;\" ></a><div class=\"btn-group\" role=\"group\"><a class=\"prev btn btn-primary disabled\" href=\"#\">&lsaquo;&nbsp;Prev</a><div class=\"pagy-compact-input btn btn-primary disabled\">Page <input type=\"number\" min=\"1\" max=\"6\" value=\"1\" style=\"padding: 0; border: none; text-align: center; width: 2rem;\"> of 6</div><a href=\"/foo?page=2\" rel=\"next\" aria-label=\"next\" class=\"next btn btn-primary\">Next&nbsp;&rsaquo;</a></div></nav><script type=\"application/json\" class=\"pagy-compact-json\">[\"#{id}\", \"#{Pagy::Frontend::MARKER}\", \"1\", false]</script>"
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 \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-compact-bootstrap pagination\" role=\"navigation\" aria-label=\"pager\"><a href=\"/foo?page=#{Pagy::Frontend::MARKER}\" style=\"display: none;\" ></a><div class=\"btn-group\" role=\"group\"><a href=\"/foo?page=2\" rel=\"prev\" aria-label=\"previous\" class=\"prev btn btn-primary\">&lsaquo;&nbsp;Prev</a><div class=\"pagy-compact-input btn btn-primary disabled\">Page <input type=\"number\" min=\"1\" max=\"6\" value=\"3\" style=\"padding: 0; border: none; text-align: center; width: 2rem;\"> of 6</div><a href=\"/foo?page=4\" rel=\"next\" aria-label=\"next\" class=\"next btn btn-primary\">Next&nbsp;&rsaquo;</a></div></nav><script type=\"application/json\" class=\"pagy-compact-json\">[\"#{id}\", \"#{Pagy::Frontend::MARKER}\", \"3\", false]</script>"
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 \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-compact-bootstrap pagination\" role=\"navigation\" aria-label=\"pager\"><a href=\"/foo?page=#{Pagy::Frontend::MARKER}\" style=\"display: none;\" ></a><div class=\"btn-group\" role=\"group\"><a href=\"/foo?page=5\" rel=\"prev\" aria-label=\"previous\" class=\"prev btn btn-primary\">&lsaquo;&nbsp;Prev</a><div class=\"pagy-compact-input btn btn-primary disabled\">Page <input type=\"number\" min=\"1\" max=\"6\" value=\"6\" style=\"padding: 0; border: none; text-align: center; width: 2rem;\"> of 6</div><a class=\"next btn btn-primary disabled\" href=\"#\">Next&nbsp;&rsaquo;</a></div></nav><script type=\"application/json\" class=\"pagy-compact-json\">[\"#{id}\", \"#{Pagy::Frontend::MARKER}\", \"6\", false]</script>"
end

end

describe "#pagy_nav_responsive_bootstrap" do

before do
@array = (1..103).to_a.extend(Pagy::Array::PageMethod)
end

it 'renders page 1 for bootstrap' do
pagy, _ = @array.pagy(1)
html, id = frontend.pagy_nav_responsive_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-responsive-bootstrap pagination\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-responsive-json\">[\"#{id}\", {\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&lsaquo;&nbsp;Prev</a></li>\",\"1\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=1\\\" class=\\\"page-link\\\" >1</a></li>\",\"2\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=2\\\" class=\\\"page-link\\\" rel=\\\"next\\\" >2</a></li>\",\"3\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=3\\\" class=\\\"page-link\\\" >3</a></li>\",\"4\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=4\\\" class=\\\"page-link\\\" >4</a></li>\",\"5\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=5\\\" class=\\\"page-link\\\" >5</a></li>\",\"6\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=6\\\" class=\\\"page-link\\\" >6</a></li>\",\"after\":\"<li class=\\\"page-item next\\\"><a href=\\\"/foo?page=2\\\" class=\\\"page-link\\\" rel=\\\"next\\\" aria-label=\\\"next\\\">Next&nbsp;&rsaquo;</a></li></ul>\"}, [0], {\"0\":[\"1\",2,3,4,5,6]}]</script>"
end

it 'renders page 3 for bootstrap' do
pagy, _ = @array.pagy(3)
html, id = frontend.pagy_nav_responsive_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-responsive-bootstrap pagination\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-responsive-json\">[\"#{id}\", {\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev\\\"><a href=\\\"/foo?page=2\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" aria-label=\\\"previous\\\">&lsaquo;&nbsp;Prev</a></li>\",\"1\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=1\\\" class=\\\"page-link\\\" >1</a></li>\",\"2\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=2\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" >2</a></li>\",\"3\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=3\\\" class=\\\"page-link\\\" >3</a></li>\",\"4\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=4\\\" class=\\\"page-link\\\" rel=\\\"next\\\" >4</a></li>\",\"5\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=5\\\" class=\\\"page-link\\\" >5</a></li>\",\"6\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=6\\\" class=\\\"page-link\\\" >6</a></li>\",\"after\":\"<li class=\\\"page-item next\\\"><a href=\\\"/foo?page=4\\\" class=\\\"page-link\\\" rel=\\\"next\\\" aria-label=\\\"next\\\">Next&nbsp;&rsaquo;</a></li></ul>\"}, [0], {\"0\":[1,2,\"3\",4,5,6]}]</script>"
end

it 'renders page 6 for bootstrap' do
pagy, _ = @array.pagy(6)
html, id = frontend.pagy_nav_responsive_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-responsive-bootstrap pagination\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-responsive-json\">[\"#{id}\", {\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev\\\"><a href=\\\"/foo?page=5\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" aria-label=\\\"previous\\\">&lsaquo;&nbsp;Prev</a></li>\",\"1\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=1\\\" class=\\\"page-link\\\" >1</a></li>\",\"2\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=2\\\" class=\\\"page-link\\\" >2</a></li>\",\"3\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=3\\\" class=\\\"page-link\\\" >3</a></li>\",\"4\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=4\\\" class=\\\"page-link\\\" >4</a></li>\",\"5\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=5\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" >5</a></li>\",\"6\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=6\\\" class=\\\"page-link\\\" >6</a></li>\",\"after\":\"<li class=\\\"page-item next disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">Next&nbsp;&rsaquo;</a></li></ul>\"}, [0], {\"0\":[1,2,3,4,5,\"6\"]}]</script>"
end

it 'renders page 10 for bootstrap' do
@array = (1..1000).to_a.extend(Pagy::Array::PageMethod)
pagy, _ = @array.pagy(10)
html, id = frontend.pagy_nav_responsive_bootstrap(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-responsive-bootstrap pagination\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-responsive-json\">[\"#{id}\", {\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev\\\"><a href=\\\"/foo?page=9\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" aria-label=\\\"previous\\\">&lsaquo;&nbsp;Prev</a></li>\",\"1\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=1\\\" class=\\\"page-link\\\" >1</a></li>\",\"gap\":\"<li class=\\\"page-item gap disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&hellip;</a></li>\",\"6\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=6\\\" class=\\\"page-link\\\" >6</a></li>\",\"7\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=7\\\" class=\\\"page-link\\\" >7</a></li>\",\"8\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=8\\\" class=\\\"page-link\\\" >8</a></li>\",\"9\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=9\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" >9</a></li>\",\"10\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=10\\\" class=\\\"page-link\\\" >10</a></li>\",\"11\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=11\\\" class=\\\"page-link\\\" rel=\\\"next\\\" >11</a></li>\",\"12\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=12\\\" class=\\\"page-link\\\" >12</a></li>\",\"13\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=13\\\" class=\\\"page-link\\\" >13</a></li>\",\"14\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=14\\\" class=\\\"page-link\\\" >14</a></li>\",\"50\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=50\\\" class=\\\"page-link\\\" >50</a></li>\",\"after\":\"<li class=\\\"page-item next\\\"><a href=\\\"/foo?page=11\\\" class=\\\"page-link\\\" rel=\\\"next\\\" aria-label=\\\"next\\\">Next&nbsp;&rsaquo;</a></li></ul>\"}, [0], {\"0\":[1,\"gap\",6,7,8,9,\"10\",11,12,13,14,\"gap\",50]}]</script>"
end

end

end
68 changes: 67 additions & 1 deletion test/pagy/extras/bulma_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../../test_helper'
require 'pagy/extras/bulma'

SingleCov.covered!
SingleCov.covered!(uncovered: 1) # undefined TRIM for compact helper, tested in trim_test

describe Pagy::Frontend do

Expand Down Expand Up @@ -92,4 +92,70 @@

end

describe "#pagy_nav_compact_bulma" do

before do
@array = (1..103).to_a.extend(Pagy::Array::PageMethod)
end

it 'renders page 1 for bulma' do
pagy, _ = @array.pagy(1)
html, id = frontend.pagy_nav_compact_bulma(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-compact-bulma\" role=\"navigation\" aria-label=\"pagination\"><a href=\"/foo?page=#{Pagy::Frontend::MARKER}\" style=\"display: none;\"></a><div class=\"field is-grouped is-grouped-centered\" role=\"group\"><p class=\"control\"><a class=\"button\" disabled>&lsaquo;&nbsp;Prev</a></p><div class=\"pagy-compact-input control level is-mobile\">Page&nbsp;<input class=\"input\" type=\"number\" min=\"1\" max=\"6\" value=\"1\" style=\"padding: 0; text-align: center; width: 2rem;\">&nbsp;of 6</div><p class=\"control\"><a href=\"/foo?page=2\" rel=\"next\" class=\"button\" aria-label=\"next page\">Next&nbsp;&rsaquo;</a></p></div></nav><script type=\"application/json\" class=\"pagy-compact-json\">[\"#{id}\", \"#{Pagy::Frontend::MARKER}\", \"1\", false]</script>"
end

it 'renders page 3 for bulma' do
pagy, _ = @array.pagy(3)
html, id = frontend.pagy_nav_compact_bulma(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-compact-bulma\" role=\"navigation\" aria-label=\"pagination\"><a href=\"/foo?page=#{Pagy::Frontend::MARKER}\" style=\"display: none;\"></a><div class=\"field is-grouped is-grouped-centered\" role=\"group\"><p class=\"control\"><a href=\"/foo?page=2\" rel=\"prev\" class=\"button\" aria-label=\"previous page\">&lsaquo;&nbsp;Prev</a></p><div class=\"pagy-compact-input control level is-mobile\">Page&nbsp;<input class=\"input\" type=\"number\" min=\"1\" max=\"6\" value=\"3\" style=\"padding: 0; text-align: center; width: 2rem;\">&nbsp;of 6</div><p class=\"control\"><a href=\"/foo?page=4\" rel=\"next\" class=\"button\" aria-label=\"next page\">Next&nbsp;&rsaquo;</a></p></div></nav><script type=\"application/json\" class=\"pagy-compact-json\">[\"#{id}\", \"#{Pagy::Frontend::MARKER}\", \"3\", false]</script>"
end

it 'renders page 6 for bulma' do
pagy, _ = @array.pagy(6)
html, id = frontend.pagy_nav_compact_bulma(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-compact-bulma\" role=\"navigation\" aria-label=\"pagination\"><a href=\"/foo?page=#{Pagy::Frontend::MARKER}\" style=\"display: none;\"></a><div class=\"field is-grouped is-grouped-centered\" role=\"group\"><p class=\"control\"><a href=\"/foo?page=5\" rel=\"prev\" class=\"button\" aria-label=\"previous page\">&lsaquo;&nbsp;Prev</a></p><div class=\"pagy-compact-input control level is-mobile\">Page&nbsp;<input class=\"input\" type=\"number\" min=\"1\" max=\"6\" value=\"6\" style=\"padding: 0; text-align: center; width: 2rem;\">&nbsp;of 6</div><p class=\"control\"><a class=\"button\" disabled>Next&nbsp;&rsaquo;</a></p></div></nav><script type=\"application/json\" class=\"pagy-compact-json\">[\"#{id}\", \"#{Pagy::Frontend::MARKER}\", \"6\", false]</script>"
end

end

describe "#pagy_nav_responsive_bulma" do

before do
@array = (1..103).to_a.extend(Pagy::Array::PageMethod)
end

it 'renders page 1 for bulma' do
pagy, _ = @array.pagy(1)
html, id = frontend.pagy_nav_responsive_bulma(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-bulma pagination is-centered\" role=\"navigation\" aria-label=\"pagination\"></nav><script type=\"application/json\" class=\"pagy-responsive-json\">[\"#{id}\", {\"before\":\"<a class=\\\"pagination-previous\\\" disabled>&lsaquo;&nbsp;Prev</a><a href=\\\"/foo?page=2\\\" rel=\\\"next\\\" class=\\\"pagination-next\\\" aria-label=\\\"next page\\\">Next&nbsp;&rsaquo;</a><ul class=\\\"pagination-list\\\">\",\"1\":\"<li><a href=\\\"/foo?page=1\\\" class=\\\"pagination-link is-current\\\" aria-current=\\\"page\\\" aria-label=\\\"page 1\\\">1</a></li>\",\"2\":\"<li><a href=\\\"/foo?page=2\\\" rel=\\\"next\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 2\\\">2</a></li>\",\"3\":\"<li><a href=\\\"/foo?page=3\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 3\\\">3</a></li>\",\"4\":\"<li><a href=\\\"/foo?page=4\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 4\\\">4</a></li>\",\"5\":\"<li><a href=\\\"/foo?page=5\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 5\\\">5</a></li>\",\"6\":\"<li><a href=\\\"/foo?page=6\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 6\\\">6</a></li>\",\"after\":\"</ul>\"}, [0], {\"0\":[\"1\",2,3,4,5,6]}]</script>"
end

it 'renders page 3 for bulma' do
pagy, _ = @array.pagy(3)
html, id = frontend.pagy_nav_responsive_bulma(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-bulma pagination is-centered\" role=\"navigation\" aria-label=\"pagination\"></nav><script type=\"application/json\" class=\"pagy-responsive-json\">[\"#{id}\", {\"before\":\"<a href=\\\"/foo?page=2\\\" rel=\\\"prev\\\" class=\\\"pagination-previous\\\" aria-label=\\\"previous page\\\">&lsaquo;&nbsp;Prev</a><a href=\\\"/foo?page=4\\\" rel=\\\"next\\\" class=\\\"pagination-next\\\" aria-label=\\\"next page\\\">Next&nbsp;&rsaquo;</a><ul class=\\\"pagination-list\\\">\",\"1\":\"<li><a href=\\\"/foo?page=1\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 1\\\">1</a></li>\",\"2\":\"<li><a href=\\\"/foo?page=2\\\" rel=\\\"prev\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 2\\\">2</a></li>\",\"3\":\"<li><a href=\\\"/foo?page=3\\\" class=\\\"pagination-link is-current\\\" aria-current=\\\"page\\\" aria-label=\\\"page 3\\\">3</a></li>\",\"4\":\"<li><a href=\\\"/foo?page=4\\\" rel=\\\"next\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 4\\\">4</a></li>\",\"5\":\"<li><a href=\\\"/foo?page=5\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 5\\\">5</a></li>\",\"6\":\"<li><a href=\\\"/foo?page=6\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 6\\\">6</a></li>\",\"after\":\"</ul>\"}, [0], {\"0\":[1,2,\"3\",4,5,6]}]</script>"
end

it 'renders page 6 for bulma' do
pagy, _ = @array.pagy(6)
html, id = frontend.pagy_nav_responsive_bulma(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-bulma pagination is-centered\" role=\"navigation\" aria-label=\"pagination\"></nav><script type=\"application/json\" class=\"pagy-responsive-json\">[\"#{id}\", {\"before\":\"<a href=\\\"/foo?page=5\\\" rel=\\\"prev\\\" class=\\\"pagination-previous\\\" aria-label=\\\"previous page\\\">&lsaquo;&nbsp;Prev</a><a class=\\\"pagination-next\\\" disabled>Next&nbsp;&rsaquo;</a><ul class=\\\"pagination-list\\\">\",\"1\":\"<li><a href=\\\"/foo?page=1\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 1\\\">1</a></li>\",\"2\":\"<li><a href=\\\"/foo?page=2\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 2\\\">2</a></li>\",\"3\":\"<li><a href=\\\"/foo?page=3\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 3\\\">3</a></li>\",\"4\":\"<li><a href=\\\"/foo?page=4\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 4\\\">4</a></li>\",\"5\":\"<li><a href=\\\"/foo?page=5\\\" rel=\\\"prev\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 5\\\">5</a></li>\",\"6\":\"<li><a href=\\\"/foo?page=6\\\" class=\\\"pagination-link is-current\\\" aria-current=\\\"page\\\" aria-label=\\\"page 6\\\">6</a></li>\",\"after\":\"</ul>\"}, [0], {\"0\":[1,2,3,4,5,\"6\"]}]</script>"
end

it 'renders page 10 for bulma' do
@array = (1..1000).to_a.extend(Pagy::Array::PageMethod)
pagy, _ = @array.pagy(10)
html, id = frontend.pagy_nav_responsive_bulma(pagy), caller(0,1)[0].hash
html.must_equal \
"<nav id=\"pagy-nav-#{id}\" class=\"pagy-nav-bulma pagination is-centered\" role=\"navigation\" aria-label=\"pagination\"></nav><script type=\"application/json\" class=\"pagy-responsive-json\">[\"#{id}\", {\"before\":\"<a href=\\\"/foo?page=9\\\" rel=\\\"prev\\\" class=\\\"pagination-previous\\\" aria-label=\\\"previous page\\\">&lsaquo;&nbsp;Prev</a><a href=\\\"/foo?page=11\\\" rel=\\\"next\\\" class=\\\"pagination-next\\\" aria-label=\\\"next page\\\">Next&nbsp;&rsaquo;</a><ul class=\\\"pagination-list\\\">\",\"1\":\"<li><a href=\\\"/foo?page=1\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 1\\\">1</a></li>\",\"gap\":\"<li><span class=\\\"pagination-ellipsis\\\">&hellip;</span></li>\",\"6\":\"<li><a href=\\\"/foo?page=6\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 6\\\">6</a></li>\",\"7\":\"<li><a href=\\\"/foo?page=7\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 7\\\">7</a></li>\",\"8\":\"<li><a href=\\\"/foo?page=8\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 8\\\">8</a></li>\",\"9\":\"<li><a href=\\\"/foo?page=9\\\" rel=\\\"prev\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 9\\\">9</a></li>\",\"10\":\"<li><a href=\\\"/foo?page=10\\\" class=\\\"pagination-link is-current\\\" aria-current=\\\"page\\\" aria-label=\\\"page 10\\\">10</a></li>\",\"11\":\"<li><a href=\\\"/foo?page=11\\\" rel=\\\"next\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 11\\\">11</a></li>\",\"12\":\"<li><a href=\\\"/foo?page=12\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 12\\\">12</a></li>\",\"13\":\"<li><a href=\\\"/foo?page=13\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 13\\\">13</a></li>\",\"14\":\"<li><a href=\\\"/foo?page=14\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 14\\\">14</a></li>\",\"50\":\"<li><a href=\\\"/foo?page=50\\\" class=\\\"pagination-link\\\" aria-label=\\\"goto page 50\\\">50</a></li>\",\"after\":\"</ul>\"}, [0], {\"0\":[1,\"gap\",6,7,8,9,\"10\",11,12,13,14,\"gap\",50]}]</script>"
end

end

end
Loading

0 comments on commit f093c7e

Please sign in to comment.