Sha256: b8a3e3ebe1ba25f79df5ba638c989885fb152765e93235efcb3d827c11f33fce

Contents?: true

Size: 1 KB

Versions: 112

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

112 entries across 112 versions & 1 rubygems

Version Path
cm-admin-3.0.15 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.14 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.13 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.12 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.11 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.10 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.9 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.8 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.7 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.6 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.5 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.4 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.3 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.2 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.1 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-3.0.0 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-2.4.6 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-2.4.5 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-2.4.4 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-2.4.3 app/views/cm_admin/main/_cm_pagy_nav.html.slim