_paginator.html.haml 593 Bytes
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1 2 3 4 5 6 7 8
-#  The container tag
-#  available local variables
-#    current_page:  a page object for the currently displayed page
-#    num_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 do
randx's avatar
randx committed
9 10 11
  %nav.gitlab_pagination
    = prev_page_tag
    - each_page do |page|
12
      - if page.left_outer? || page.pull-right_outer? || page.inside_window?
randx's avatar
randx committed
13 14 15 16
        = page_tag page
      - elsif !page.was_truncated?
        = gap_tag
    = next_page_tag