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

Version Path
cm-admin-1.5.37 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.36 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.35 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.34 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.33 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.32 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.31 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.30 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.29 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.28 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.10 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.27 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.26 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.25 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.23 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.22 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.21 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.20 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.11 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.5.9 app/views/cm_admin/main/_cm_pagy_nav.html.slim