Sha256: b3845e15e43ef7683c0a15291294af04b4a28d157c8f92439f07a16ce955019f
Contents?: true
Size: 950 Bytes
Versions: 26
Compression:
Stored size: 950 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 -%> <% if total_pages > 1 %> <ul class="pagination text-center" role="navigation" aria-label="Pagination"> <%= paginator.first_page_tag unless current_page.first? %> <%= paginator.prev_page_tag unless current_page.first? %> <% paginator.each_page do |page| -%> <% if page.display_tag? -%> <%= paginator.page_tag page %> <% elsif !page.was_truncated? -%> <%= paginator.gap_tag %> <% end -%> <% end -%> <% unless current_page.out_of_range? %> <%= paginator.next_page_tag unless current_page.last? %> <%= paginator.last_page_tag unless current_page.last? %> <% end %> </ul> <% end %>
Version data entries
26 entries across 26 versions & 1 rubygems