Sha256: 8c45ca7611e8a8e4b81b1327aebe7745d667f69f2604fcc2f285674268f8a8b6
Contents?: true
Size: 910 Bytes
Versions: 17
Compression:
Stored size: 910 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 -%> <% binding.pry %> <%= paginator.render do -%> <ul class="pagination"> <%= first_page_tag(main_app) unless current_page.first? %> <%= prev_page_tag(main_app) unless current_page.first? %> <% each_page do |page| -%> <% if page.left_outer? || page.right_outer? || page.inside_window? -%> <%= page_tag(main_app) page %> <% elsif !page.was_truncated? -%> <%= gap_tag(main_app) %> <% end -%> <% end -%> <%= next_page_tag(main_app) unless current_page.last? %> <%= last_page_tag(main_app) unless current_page.last? %> </ul> <% end -%>
Version data entries
17 entries across 17 versions & 1 rubygems