Sha256: c0ffacfbd9b72b74018d8f3a631ab5f2dfec7fd74b841ee508f6cae313af41f9

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 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
    total_pages:   total number of pages
    per_page:      number of items to fetch per page
    remote:        data-remote
-%>
<% if page.current? %>
    <li class="active">
      <%= link_to page, "#"%>
    </li>
<% else %>
     <li>
       <%= link_to page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
     </li>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
admin-sys-1.0.2 app/views/kaminari/_page.html.erb
admin-sys-1.0.1 app/views/kaminari/_page.html.erb
admin-sys-1.0.0 app/views/kaminari/_page.html.erb