Skip to content

Commit

Permalink
Remove duplicated pagination class for Bootstrap (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnclmorais authored Feb 11, 2020
1 parent ee22c98 commit fead55c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lib/pagy/extras/bootstrap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def pagy_bootstrap_nav(pagy)
end
html << (p_next ? %(<li class="page-item next">#{link.call p_next, pagy_t('pagy.nav.next'), 'aria-label="next"'}</li>)
: %(<li class="page-item next disabled"><a href="#" class="page-link">#{pagy_t('pagy.nav.next')}</a></li>))
%(<nav class="pagy-bootstrap-nav pagination" role="navigation" aria-label="pager"><ul class="pagination">#{html}</ul></nav>)
%(<nav class="pagy-bootstrap-nav" role="navigation" aria-label="pager"><ul class="pagination">#{html}</ul></nav>)
end

# Javascript pagination for bootstrap: it returns a nav and a JSON tag used by the Pagy.nav javascript
Expand All @@ -34,7 +34,7 @@ def pagy_bootstrap_nav_js(pagy, id=pagy_id)
'gap' => %(<li class="page-item gap disabled"><a href="#" class="page-link">#{pagy_t('pagy.nav.gap')}</a></li>),
'after' => p_next ? %(<li class="page-item next">#{link.call p_next, pagy_t('pagy.nav.next'), 'aria-label="next"'}</li></ul>)
: %(<li class="page-item next disabled"><a href="#" class="page-link">#{pagy_t('pagy.nav.next')}</a></li></ul>) }
%(<nav id="#{id}" class="pagy-bootstrap-nav-js pagination" role="navigation" aria-label="pager"></nav>#{pagy_json_tag(:nav, id, tags, pagy.sequels, defined?(TRIM) && pagy.vars[:page_param])})
%(<nav id="#{id}" class="pagy-bootstrap-nav-js" role="navigation" aria-label="pager"></nav>#{pagy_json_tag(:nav, id, tags, pagy.sequels, defined?(TRIM) && pagy.vars[:page_param])})
end

# Javascript combo pagination for bootstrap: it returns a nav and a JSON tag used by the Pagy.combo_nav javascript
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/bootstrap_nav.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Usage: link.call( page_number [, text [, extra_attributes_string ]])
-%>
<% link = pagy_link_proc(pagy, 'class="page-link"') -%>
<%# -%><nav aria-label="pager" class="pagy-bootstrap-nav pagination" role="navigation">
<%# -%><nav aria-label="pager" class="pagy-bootstrap-nav" role="navigation">
<%# -%> <ul class="pagination">
<% if pagy.prev -%> <li class="page-item prev"><%== link.call(pagy.prev, pagy_t('pagy.nav.prev'), 'aria-label="previous"') %></li>
<% else -%> <li class="page-item prev disabled"><a href="#" class="page-link"><%== pagy_t('pagy.nav.prev') %></a></li>
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/bootstrap_nav.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- link = pagy_link_proc(pagy, 'class="page-link"')

%nav.pagy-bootstrap-nav.pagination{"aria-label" => "pager", :role => "navigation"}
%nav.pagy-bootstrap-nav{"aria-label" => "pager", :role => "navigation"}
%ul.pagination
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/bootstrap_nav.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- link = pagy_link_proc(pagy, 'class="page-link"')

nav.pagy-bootstrap-nav.pagination role="navigation" aria-label="pager"
nav.pagy-bootstrap-nav role="navigation" aria-label="pager"

ul.pagination

Expand Down
14 changes: 7 additions & 7 deletions test/pagy/extras/bootstrap_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
it 'renders first page' do
pagy = Pagy.new(count: 1000, page: 1)
_(view.pagy_bootstrap_nav(pagy)).must_equal \
"<nav class=\"pagy-bootstrap-nav pagination\" role=\"navigation\" aria-label=\"pager\"><ul class=\"pagination\"><li class=\"page-item prev disabled\"><a href=\"#\" class=\"page-link\">&lsaquo;&nbsp;Prev</a></li><li class=\"page-item active\"><a href=\"/foo?page=1\" class=\"page-link\" >1</a></li><li class=\"page-item\"><a href=\"/foo?page=2\" class=\"page-link\" rel=\"next\" >2</a></li><li class=\"page-item\"><a href=\"/foo?page=3\" class=\"page-link\" >3</a></li><li class=\"page-item\"><a href=\"/foo?page=4\" class=\"page-link\" >4</a></li><li class=\"page-item\"><a href=\"/foo?page=5\" class=\"page-link\" >5</a></li><li class=\"page-item gap disabled\"><a href=\"#\" class=\"page-link\">&hellip;</a></li><li class=\"page-item\"><a href=\"/foo?page=50\" class=\"page-link\" >50</a></li><li class=\"page-item next\"><a href=\"/foo?page=2\" class=\"page-link\" rel=\"next\" aria-label=\"next\">Next&nbsp;&rsaquo;</a></li></ul></nav>"
"<nav class=\"pagy-bootstrap-nav\" role=\"navigation\" aria-label=\"pager\"><ul class=\"pagination\"><li class=\"page-item prev disabled\"><a href=\"#\" class=\"page-link\">&lsaquo;&nbsp;Prev</a></li><li class=\"page-item active\"><a href=\"/foo?page=1\" class=\"page-link\" >1</a></li><li class=\"page-item\"><a href=\"/foo?page=2\" class=\"page-link\" rel=\"next\" >2</a></li><li class=\"page-item\"><a href=\"/foo?page=3\" class=\"page-link\" >3</a></li><li class=\"page-item\"><a href=\"/foo?page=4\" class=\"page-link\" >4</a></li><li class=\"page-item\"><a href=\"/foo?page=5\" class=\"page-link\" >5</a></li><li class=\"page-item gap disabled\"><a href=\"#\" class=\"page-link\">&hellip;</a></li><li class=\"page-item\"><a href=\"/foo?page=50\" class=\"page-link\" >50</a></li><li class=\"page-item next\"><a href=\"/foo?page=2\" class=\"page-link\" rel=\"next\" aria-label=\"next\">Next&nbsp;&rsaquo;</a></li></ul></nav>"
end

it 'renders intermediate page' do
pagy = Pagy.new(count: 1000, page: 20)
_(view.pagy_bootstrap_nav(pagy)).must_equal \
"<nav class=\"pagy-bootstrap-nav pagination\" role=\"navigation\" aria-label=\"pager\"><ul class=\"pagination\"><li class=\"page-item prev\"><a href=\"/foo?page=19\" class=\"page-link\" rel=\"prev\" aria-label=\"previous\">&lsaquo;&nbsp;Prev</a></li><li class=\"page-item\"><a href=\"/foo?page=1\" class=\"page-link\" >1</a></li><li class=\"page-item gap disabled\"><a href=\"#\" class=\"page-link\">&hellip;</a></li><li class=\"page-item\"><a href=\"/foo?page=16\" class=\"page-link\" >16</a></li><li class=\"page-item\"><a href=\"/foo?page=17\" class=\"page-link\" >17</a></li><li class=\"page-item\"><a href=\"/foo?page=18\" class=\"page-link\" >18</a></li><li class=\"page-item\"><a href=\"/foo?page=19\" class=\"page-link\" rel=\"prev\" >19</a></li><li class=\"page-item active\"><a href=\"/foo?page=20\" class=\"page-link\" >20</a></li><li class=\"page-item\"><a href=\"/foo?page=21\" class=\"page-link\" rel=\"next\" >21</a></li><li class=\"page-item\"><a href=\"/foo?page=22\" class=\"page-link\" >22</a></li><li class=\"page-item\"><a href=\"/foo?page=23\" class=\"page-link\" >23</a></li><li class=\"page-item\"><a href=\"/foo?page=24\" class=\"page-link\" >24</a></li><li class=\"page-item gap disabled\"><a href=\"#\" class=\"page-link\">&hellip;</a></li><li class=\"page-item\"><a href=\"/foo?page=50\" class=\"page-link\" >50</a></li><li class=\"page-item next\"><a href=\"/foo?page=21\" class=\"page-link\" rel=\"next\" aria-label=\"next\">Next&nbsp;&rsaquo;</a></li></ul></nav>"
"<nav class=\"pagy-bootstrap-nav\" role=\"navigation\" aria-label=\"pager\"><ul class=\"pagination\"><li class=\"page-item prev\"><a href=\"/foo?page=19\" class=\"page-link\" rel=\"prev\" aria-label=\"previous\">&lsaquo;&nbsp;Prev</a></li><li class=\"page-item\"><a href=\"/foo?page=1\" class=\"page-link\" >1</a></li><li class=\"page-item gap disabled\"><a href=\"#\" class=\"page-link\">&hellip;</a></li><li class=\"page-item\"><a href=\"/foo?page=16\" class=\"page-link\" >16</a></li><li class=\"page-item\"><a href=\"/foo?page=17\" class=\"page-link\" >17</a></li><li class=\"page-item\"><a href=\"/foo?page=18\" class=\"page-link\" >18</a></li><li class=\"page-item\"><a href=\"/foo?page=19\" class=\"page-link\" rel=\"prev\" >19</a></li><li class=\"page-item active\"><a href=\"/foo?page=20\" class=\"page-link\" >20</a></li><li class=\"page-item\"><a href=\"/foo?page=21\" class=\"page-link\" rel=\"next\" >21</a></li><li class=\"page-item\"><a href=\"/foo?page=22\" class=\"page-link\" >22</a></li><li class=\"page-item\"><a href=\"/foo?page=23\" class=\"page-link\" >23</a></li><li class=\"page-item\"><a href=\"/foo?page=24\" class=\"page-link\" >24</a></li><li class=\"page-item gap disabled\"><a href=\"#\" class=\"page-link\">&hellip;</a></li><li class=\"page-item\"><a href=\"/foo?page=50\" class=\"page-link\" >50</a></li><li class=\"page-item next\"><a href=\"/foo?page=21\" class=\"page-link\" rel=\"next\" aria-label=\"next\">Next&nbsp;&rsaquo;</a></li></ul></nav>"
end

it 'renders last page' do
pagy = Pagy.new(count: 1000, page: 50)
_(view.pagy_bootstrap_nav(pagy)).must_equal \
"<nav class=\"pagy-bootstrap-nav pagination\" role=\"navigation\" aria-label=\"pager\"><ul class=\"pagination\"><li class=\"page-item prev\"><a href=\"/foo?page=49\" class=\"page-link\" rel=\"prev\" aria-label=\"previous\">&lsaquo;&nbsp;Prev</a></li><li class=\"page-item\"><a href=\"/foo?page=1\" class=\"page-link\" >1</a></li><li class=\"page-item gap disabled\"><a href=\"#\" class=\"page-link\">&hellip;</a></li><li class=\"page-item\"><a href=\"/foo?page=46\" class=\"page-link\" >46</a></li><li class=\"page-item\"><a href=\"/foo?page=47\" class=\"page-link\" >47</a></li><li class=\"page-item\"><a href=\"/foo?page=48\" class=\"page-link\" >48</a></li><li class=\"page-item\"><a href=\"/foo?page=49\" class=\"page-link\" rel=\"prev\" >49</a></li><li class=\"page-item active\"><a href=\"/foo?page=50\" class=\"page-link\" >50</a></li><li class=\"page-item next disabled\"><a href=\"#\" class=\"page-link\">Next&nbsp;&rsaquo;</a></li></ul></nav>"
"<nav class=\"pagy-bootstrap-nav\" role=\"navigation\" aria-label=\"pager\"><ul class=\"pagination\"><li class=\"page-item prev\"><a href=\"/foo?page=49\" class=\"page-link\" rel=\"prev\" aria-label=\"previous\">&lsaquo;&nbsp;Prev</a></li><li class=\"page-item\"><a href=\"/foo?page=1\" class=\"page-link\" >1</a></li><li class=\"page-item gap disabled\"><a href=\"#\" class=\"page-link\">&hellip;</a></li><li class=\"page-item\"><a href=\"/foo?page=46\" class=\"page-link\" >46</a></li><li class=\"page-item\"><a href=\"/foo?page=47\" class=\"page-link\" >47</a></li><li class=\"page-item\"><a href=\"/foo?page=48\" class=\"page-link\" >48</a></li><li class=\"page-item\"><a href=\"/foo?page=49\" class=\"page-link\" rel=\"prev\" >49</a></li><li class=\"page-item active\"><a href=\"/foo?page=50\" class=\"page-link\" >50</a></li><li class=\"page-item next disabled\"><a href=\"#\" class=\"page-link\">Next&nbsp;&rsaquo;</a></li></ul></nav>"
end

end
Expand All @@ -36,25 +36,25 @@
it 'renders first page' do
pagy = Pagy.new(count: 1000, page: 1)
_(view.pagy_bootstrap_nav_js(pagy, pagy_test_id)).must_equal \
"<nav id=\"test-id\" class=\"pagy-bootstrap-nav-js pagination\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-json\">[\"nav\",\"test-id\",{\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&lsaquo;&nbsp;Prev</a></li>\",\"link\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"active\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"gap\":\"<li class=\\\"page-item gap disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&hellip;</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\":[\"1\",2,3,4,5,\"gap\",50]},null]</script>"
"<nav id=\"test-id\" class=\"pagy-bootstrap-nav-js\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-json\">[\"nav\",\"test-id\",{\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&lsaquo;&nbsp;Prev</a></li>\",\"link\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"active\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"gap\":\"<li class=\\\"page-item gap disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&hellip;</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\":[\"1\",2,3,4,5,\"gap\",50]},null]</script>"
end

it 'renders intermediate page' do
pagy = Pagy.new(count: 1000, page: 20)
_(view.pagy_bootstrap_nav_js(pagy, pagy_test_id)).must_equal \
"<nav id=\"test-id\" class=\"pagy-bootstrap-nav-js pagination\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-json\">[\"nav\",\"test-id\",{\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev\\\"><a href=\\\"/foo?page=19\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" aria-label=\\\"previous\\\">&lsaquo;&nbsp;Prev</a></li>\",\"link\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"active\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"gap\":\"<li class=\\\"page-item gap disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&hellip;</a></li>\",\"after\":\"<li class=\\\"page-item next\\\"><a href=\\\"/foo?page=21\\\" class=\\\"page-link\\\" rel=\\\"next\\\" aria-label=\\\"next\\\">Next&nbsp;&rsaquo;</a></li></ul>\"},{\"0\":[1,\"gap\",16,17,18,19,\"20\",21,22,23,24,\"gap\",50]},null]</script>"
"<nav id=\"test-id\" class=\"pagy-bootstrap-nav-js\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-json\">[\"nav\",\"test-id\",{\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev\\\"><a href=\\\"/foo?page=19\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" aria-label=\\\"previous\\\">&lsaquo;&nbsp;Prev</a></li>\",\"link\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"active\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"gap\":\"<li class=\\\"page-item gap disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&hellip;</a></li>\",\"after\":\"<li class=\\\"page-item next\\\"><a href=\\\"/foo?page=21\\\" class=\\\"page-link\\\" rel=\\\"next\\\" aria-label=\\\"next\\\">Next&nbsp;&rsaquo;</a></li></ul>\"},{\"0\":[1,\"gap\",16,17,18,19,\"20\",21,22,23,24,\"gap\",50]},null]</script>"
end

it 'renders last page' do
pagy = Pagy.new(count: 1000, page: 50)
_(view.pagy_bootstrap_nav_js(pagy, pagy_test_id)).must_equal \
"<nav id=\"test-id\" class=\"pagy-bootstrap-nav-js pagination\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-json\">[\"nav\",\"test-id\",{\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev\\\"><a href=\\\"/foo?page=49\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" aria-label=\\\"previous\\\">&lsaquo;&nbsp;Prev</a></li>\",\"link\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"active\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"gap\":\"<li class=\\\"page-item gap disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&hellip;</a></li>\",\"after\":\"<li class=\\\"page-item next disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">Next&nbsp;&rsaquo;</a></li></ul>\"},{\"0\":[1,\"gap\",46,47,48,49,\"50\"]},null]</script>"
"<nav id=\"test-id\" class=\"pagy-bootstrap-nav-js\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-json\">[\"nav\",\"test-id\",{\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev\\\"><a href=\\\"/foo?page=49\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" aria-label=\\\"previous\\\">&lsaquo;&nbsp;Prev</a></li>\",\"link\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"active\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"gap\":\"<li class=\\\"page-item gap disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&hellip;</a></li>\",\"after\":\"<li class=\\\"page-item next disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">Next&nbsp;&rsaquo;</a></li></ul>\"},{\"0\":[1,\"gap\",46,47,48,49,\"50\"]},null]</script>"
end

it 'renders with :steps' do
pagy = Pagy.new(count: 1000, page: 20, steps: {0 => [1,2,2,1], 500 => [2,3,3,2]})
_(view.pagy_bootstrap_nav_js(pagy, pagy_test_id)).must_equal \
"<nav id=\"test-id\" class=\"pagy-bootstrap-nav-js pagination\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-json\">[\"nav\",\"test-id\",{\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev\\\"><a href=\\\"/foo?page=19\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" aria-label=\\\"previous\\\">&lsaquo;&nbsp;Prev</a></li>\",\"link\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"active\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"gap\":\"<li class=\\\"page-item gap disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&hellip;</a></li>\",\"after\":\"<li class=\\\"page-item next\\\"><a href=\\\"/foo?page=21\\\" class=\\\"page-link\\\" rel=\\\"next\\\" aria-label=\\\"next\\\">Next&nbsp;&rsaquo;</a></li></ul>\"},{\"0\":[1,\"gap\",18,19,\"20\",21,22,\"gap\",50],\"500\":[1,2,\"gap\",17,18,19,\"20\",21,22,23,\"gap\",49,50]},null]</script>"
"<nav id=\"test-id\" class=\"pagy-bootstrap-nav-js\" role=\"navigation\" aria-label=\"pager\"></nav><script type=\"application/json\" class=\"pagy-json\">[\"nav\",\"test-id\",{\"before\":\"<ul class=\\\"pagination\\\"><li class=\\\"page-item prev\\\"><a href=\\\"/foo?page=19\\\" class=\\\"page-link\\\" rel=\\\"prev\\\" aria-label=\\\"previous\\\">&lsaquo;&nbsp;Prev</a></li>\",\"link\":\"<li class=\\\"page-item\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"active\":\"<li class=\\\"page-item active\\\"><a href=\\\"/foo?page=__pagy_page__\\\" class=\\\"page-link\\\" >__pagy_page__</a></li>\",\"gap\":\"<li class=\\\"page-item gap disabled\\\"><a href=\\\"#\\\" class=\\\"page-link\\\">&hellip;</a></li>\",\"after\":\"<li class=\\\"page-item next\\\"><a href=\\\"/foo?page=21\\\" class=\\\"page-link\\\" rel=\\\"next\\\" aria-label=\\\"next\\\">Next&nbsp;&rsaquo;</a></li></ul>\"},{\"0\":[1,\"gap\",18,19,\"20\",21,22,\"gap\",50],\"500\":[1,2,\"gap\",17,18,19,\"20\",21,22,23,\"gap\",49,50]},null]</script>"
end

end
Expand Down
Loading

0 comments on commit fead55c

Please sign in to comment.