Sha256: 7a7e18ddf540e397f562702383e7f960da52d1cbe08a4d635feb5f426ffed443

Contents?: true

Size: 718 Bytes

Versions: 4

Compression:

Stored size: 718 Bytes

Contents

<%# Link showing page number
  - available local variables
    page:          a page object for "this" page
    url:           url to this page
    current_page:  a page object for the currently displayed page
    num_pages:     total number of pages
    per_page:      number of items to fetch per page
    remote:        data-remote
-%>
<% if page.current? %>
<li class="page-item active">
  <%= link_to page, url, opts = {:remote => remote, :class => 'page-link', :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
</li>
<% else %>
<li class="page-item">
  <%= link_to page, url, opts = {:remote => remote, :class => 'page-link', :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
</li>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iqvoc-4.14.5 app/views/kaminari/_page.html.erb
iqvoc-4.14.4 app/views/kaminari/_page.html.erb
iqvoc-4.13.2 app/views/kaminari/_page.html.erb
iqvoc-4.13.0 app/views/kaminari/_page.html.erb