Sha256: ab41424fe86bf0213e00785eeb2fa1da1bbc9ddad58e1e4cfe353349ce831a3c
Contents?: true
Size: 1008 Bytes
Versions: 46
Compression:
Stored size: 1008 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 %> <nav aria-label="<%= t("views.pagination.pagination") %>"> <ul class="pagination text-center"> <%= 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> </nav> <% end %>
Version data entries
46 entries across 46 versions & 1 rubygems