Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_keyset_paginator.html.haml « gitlab « kaminari « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f64c70dadfcc8945b1959484211e9a2efe4c07df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- previous_path = url_for(page_params.merge(cursor: paginator.cursor_for_previous_page))
- next_path = url_for(page_params.merge(cursor: paginator.cursor_for_next_page))

.gl-pagination.gl-mt-3
  %ul.pagination.justify-content-center

    - if paginator.has_previous_page?
      - unless without_first_and_last_pages
        %li.page-item
          - first_page_path = url_for(page_params.merge(cursor: paginator.cursor_for_first_page))
          = link_to first_page_path, rel: 'first', class: 'page-link' do
            = sprite_icon('angle-double-left', size: 8)
            = s_('Pagination|First')

      %li.page-item.prev
        = link_to previous_path, rel: 'prev', class: 'page-link' do
          = sprite_icon('angle-left', size: 8)
          = s_('Pagination|Prev')

    - if paginator.has_next_page?
      %li.page-item.next
        = link_to next_path, rel: 'next', class: 'page-link' do
          = s_('Pagination|Next')
          = sprite_icon('angle-right', size: 8)
      - unless without_first_and_last_pages
        %li.page-item
          - last_page_path = url_for(page_params.merge(cursor: paginator.cursor_for_last_page))
          = link_to last_page_path, rel: 'last', class: 'page-link' do
            = s_('Pagination|Last')
            = sprite_icon('angle-double-right', size: 8)