/ 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" / .mobile_pages - each_page do |page| = page.last? = page.last? / = raw page_tag page / - if page.left_outer? || page.right_outer? || page.inside_window? / - elsif !page.was_truncated? / li = raw gap_tag / = 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?