Sha256: 2e80de95f93474c358a892880b246b79dda9876739e48feee4bcbf7b0bdf8051

Contents?: true

Size: 535 Bytes

Versions: 13

Compression:

Stored size: 535 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
-%>
<li<% if page.current? %> class="active"<% end %>>
  <%= link_to_unless page.current?, content_tag(:span, page), url, remote: remote, rel: page.next? ? 'next' : page.prev? ? 'prev' : nil %>
</li>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
trestle-0.8.13 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.12 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.11 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.10 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.9 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.8 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.7 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.6 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.5 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.4 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.3 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.2 app/views/kaminari/trestle/_page.html.erb
trestle-0.8.0 app/views/kaminari/trestle/_page.html.erb