Sha256: b8a3e3ebe1ba25f79df5ba638c989885fb152765e93235efcb3d827c11f33fce
Contents?: true
Size: 1 KB
Versions: 114
Compression:
Stored size: 1 KB
Contents
- link = pagy_link_proc(pagy) nav.pagination-actions role="navigation" aria-label="pager" - if pagy.prev span ==> link.call(pagy.prev, '<i class="fas fa-chevron-left"></i>'.html_safe, 'aria-label="previous" class="btn-ghost"') - else span ==> link.call('#', '<i class="fas fa-chevron-left"></i>'.html_safe, 'class="btn-ghost 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="btn-ghost"') - elsif item.is_a?(String) # current page span ==> link.call(item, item, 'class="btn-ghost active"') - elsif item == :gap # page gap span.page.gap ==> pagy_t('pagy.nav.gap') - if pagy.next span == link.call(pagy.next, '<i class="fas fa-chevron-right"></i>'.html_safe, 'aria-label="next" class="btn-ghost"') - else span ==> link.call('#', '<i class="fas fa-chevron-right"></i>'.html_safe, 'class="btn-ghost disabled"')
Version data entries
114 entries across 114 versions & 1 rubygems