Sha256: e83584c42a20640efa0f46f655cec31cfe8ca32c4ba8d885b7e63b67c45c4a00

Contents?: true

Size: 736 Bytes

Versions: 1

Compression:

Stored size: 736 Bytes

Contents

/ The container tag
  - available local variables
    current_page:  a page object for the currently displayed page
    total_pages:   total number of pages
    per_page:      number of items to fetch per page
    remote:        data-remote
    paginator:     the paginator that renders the pagination tags inside

= paginator.render
  ul class="cabinet-default-pagination"
    / = first_page_tag unless current_page.first?
    = content_tag(:li, prev_page_tag)

    - each_page do |page|
      - if page.left_outer? || page.right_outer? || page.inside_window?
        = raw page_tag page
      - elsif !page.was_truncated?
        li = raw gap_tag

    = content_tag(:li, next_page_tag)
    / = last_page_tag unless current_page.last?

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/views/kaminari/table_pagination/_paginator.html.slim