Sha256: 52cb39de1a7a918c81b6d79ebfb5d3d8dc254035d83ee3491f62b802befb7ea2

Contents?: true

Size: 574 Bytes

Versions: 7

Compression:

Stored size: 574 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 class="page<%= ' active' if page.current? %>">
  <%= link_to_unless page.current?, page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} do |name| %>
    <span><%= name %></span>
  <% end %>
</li>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bootstrap_pager-0.11.0 app/views/bootstrap_pager/_page.html.erb
bootstrap_pager-0.10.1 app/views/bootstrap_pager/_page.html.erb
bootstrap_pager-0.10.0 app/views/bootstrap_pager/_page.html.erb
bootstrap_pager-0.9.3 app/views/bootstrap_pager/_page.html.erb
bootstrap_pager-0.9.2 app/views/bootstrap_pager/_page.html.erb
bootstrap_pager-0.9.1 app/views/pager/_page.html.erb
bootstrap_pager-0.9.0 app/views/pager/_page.html.erb