Sha256: f26e7460c5ff5e3f3a6b1d2214d6dcee25f31096fe257bc31b7e719068870aba
Contents?: true
Size: 873 Bytes
Versions: 64
Compression:
Stored size: 873 Bytes
Contents
- link = pagy_link_proc(pagy) nav.pagy_nav.pagination role="navigation" aria-label="pager" - if pagy.prev span ==> link.call(pagy.prev, '<', 'aria-label="previous" class="page-move-btn"') - else span ==> link.call('#', '<', 'class="page-move-btn disabled"') - pagy.series.each do |item| # series example: [1, :gap, 7, 8, "9", 10, 11, :gap, 36] - if item.is_a?(Integer) # page link span ==> link.call(item, item, 'class="page-num-btn"') - elsif item.is_a?(String) # current page span ==> link.call(item, item, 'class="page-num-btn active"') - elsif item == :gap # page gap span.page.gap ==> pagy_t('pagy.nav.gap') - if pagy.next span == link.call(pagy.next, '>', 'aria-label="next" class="page-move-btn"') - else span ==> link.call('#', '>', 'class="page-move-btn disabled"')
Version data entries
64 entries across 64 versions & 1 rubygems