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

Version Path
poodle-rb-0.2.5 app/views/kaminari/_paginator.html.erb
poodle-rb-0.2.4 app/views/kaminari/_paginator.html.erb
poodle-rb-0.2.3 app/views/kaminari/_paginator.html.erb
poodle-rb-0.2.2 app/views/kaminari/_paginator.html.erb
poodle-rb-0.2.1 app/views/kaminari/_paginator.html.erb
poodle-rb-0.2.0 app/views/kaminari/_paginator.html.erb
poodle-rb-0.1.9 app/views/kaminari/_paginator.html.erb
poodle-rb-0.1.8 app/views/kaminari/_paginator.html.erb
poodle-rb-0.1.7 app/views/kaminari/_paginator.html.erb
poodle-rb-0.1.6 app/views/kaminari/_paginator.html.erb
poodle-rb-0.1.5 app/views/kaminari/_paginator.html.erb
poodle-rb-0.1.4 app/views/kaminari/_paginator.html.erb
poodle-rb-0.1.3 app/views/kaminari/_paginator.html.erb
poodle-rb-0.1.2 app/views/kaminari/_paginator.html.erb
poodle-rb-0.1.1 app/views/kaminari/_paginator.html.erb
poodle-rb-0.1.0 app/views/kaminari/_paginator.html.erb
poodle-rb-0.0.9 app/views/kaminari/_paginator.html.erb