Sha256: b4f5c09dd51d2059ddb3ca26c0d0508fadcb4dd9c040ed72741c07caec378a4a

Contents?: true

Size: 776 Bytes

Versions: 47

Compression:

Stored size: 776 Bytes

Contents

- link = pagy_link_proc(pagy)

%ul.uk-pagination.uk-flex-center
  - if page.prev
    %li!= link.call(pagy.prev, "<span uk-pagination-previous>#{pagy_t('pagy.nav.prev')}</span>")
  - else
    %li.uk-disabled
      %a{href: "#"}
        %span{"uk-pagination-previous" => ""}!= pagy_t('pagy.nav.prev')

  - pagy.series.each do |item|
    - if    item.is_a?(Integer)
      %li!= link.call(item)

    - elsif item.is_a?(String)
      %li.uk-active
        %span!= item

    - elsif item == :gap
      %li.uk-disabled
        %span!= pagy_t('pagy.nav.gap')

  - if pagy.next
    %li!= link.call(p_next, "<span uk-pagination-next>#{pagy_t('pagy.nav.next')}</span>")
  - else
    %li.uk-disabled
      %a{href: "#"}
        %span{"uk-pagination-next" => ""}!= pagy_t('pagy.nav.next')

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/uikit_nav.html.haml
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/uikit_nav.html.haml
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/uikit_nav.html.haml
pagy-5.1.3 lib/templates/uikit_nav.html.haml
pagy-5.1.2 lib/templates/uikit_nav.html.haml
pagy-5.1.1 lib/templates/uikit_nav.html.haml
pagy-5.1.0 lib/templates/uikit_nav.html.haml
pagy-5.0.1 lib/templates/uikit_nav.html.haml
pagy-5.0.0 lib/templates/uikit_nav.html.haml
pagy-4.11.0 lib/templates/uikit_nav.html.haml
pagy-4.10.2 lib/templates/uikit_nav.html.haml
pagy-4.10.1 lib/templates/uikit_nav.html.haml
pagy-4.10.0 lib/templates/uikit_nav.html.haml
pagy-4.9.0 lib/templates/uikit_nav.html.haml
pagy-4.8.1 lib/templates/uikit_nav.html.haml
pagy-3.14.0 lib/templates/uikit_nav.html.haml
pagy-4.8.0 lib/templates/uikit_nav.html.haml
pagy-4.7.1 lib/templates/uikit_nav.html.haml
pagy-4.7.0 lib/templates/uikit_nav.html.haml
pagy-4.6.0 lib/templates/uikit_nav.html.haml