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

Version Path
cm-admin-1.2.0 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.1.9 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.1.8 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.1.7 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.1.6 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.1.5 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.1.4 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.1.3 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.1.2 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.1.1 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.1.0 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.0.9 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.0.8 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.0.7 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.0.6 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.0.5 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.0.3 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.0.2 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-1.0.0 app/views/cm_admin/main/_cm_pagy_nav.html.slim
cm-admin-0.9.1 app/views/cm_admin/main/_cm_pagy_nav.html.slim