debian-mirror-gitlab/app/views/kaminari/gitlab/_paginator.html.haml

18 lines
673 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
-# The container tag
-# available local variables
-# current_page: a page object for the currently displayed page
-# total_pages: total number of pages
2014-09-02 18:07:02 +05:30
-# per_page: number of items to fetch per page
-# remote: data-remote
-# paginator: the paginator that renders the pagination tags inside
= paginator.render do
2020-07-28 23:09:34 +05:30
.gl-pagination.gl-mt-3
2018-11-08 19:23:39 +05:30
%ul.pagination.justify-content-center
2016-04-02 18:10:28 +05:30
= prev_page_tag
2014-09-02 18:07:02 +05:30
- each_page do |page|
2020-03-09 13:42:32 +05:30
- if page.left_outer? || page.right_outer? || page.inside_window? || page.first? || page.last?
2014-09-02 18:07:02 +05:30
= page_tag page
- elsif !page.was_truncated?
= gap_tag
2016-04-02 18:10:28 +05:30
= next_page_tag