Sha256: 5480d9f420a01e83ee01955d8fdea065dd6b9f60be52f20067c4d53ca5ca3353

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

%nav{"aria-label" => "Page navigation"}
  - if list.pagination_record_count > 0
    %p.text-center Showing #{list.current_page_record_range} of #{list.pagination_record_count} records
    %ul.pagination.justify-content-center
      - if list.first_page?
        %li.page-item.disabled
          %span.page-link First
        %li.page-item.disabled
          %span.page-link Previous
      - else
        %li.page-item
          %a.page-link{href: first_link} First
        %li.page-item
          %a.page-link{href: prev_link} Previous
      - if list.last_page?
        %li.page-item.disabled
          %span.page-link Next
        %li.page-item.disabled
          %span.page-link Last
      - else
        %li.page-item
          %a.page-link{href: next_link} Next
        %li.page-item
          %a.page-link{href: last_link} Last
  - else
    %p.text-center No records to show

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ditty-0.9.1 views/partials/pager.haml
ditty-0.9.0 views/partials/pager.haml