Sha256: 3ca511e77b76ae847fa6c237b2969087034073c337d50b43ec306b6158f8ad7a
Contents?: true
Size: 909 Bytes
Versions: 17
Compression:
Stored size: 909 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="flex items-center text-sm text-secondary" data-pages> <%= 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? %> <% end %> </ul> </nav> <% end %>
Version data entries
17 entries across 17 versions & 1 rubygems