Sha256: e929c4295d5a9015a702a8a0c42517c37bf386241956362817a6c7bd2228ce32

Contents?: true

Size: 535 Bytes

Versions: 27

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
    num_pages:     total number of pages
    per_page:      number of items to fetch per page
    remote:        data-remote
-%>

<% unless page.current? %>
  <%= link_to page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
<% else -%>
  <%= content_tag(:span, page)%>
<% end -%>

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
sunrise-cms-0.6.3 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.6.2 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.6.1 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.6.0 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.5.3 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.5.2 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.5.1 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.5.0 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.5.0.rc5 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.5.0.rc4 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.5.0.rc3 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.5.0.rc2 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.5.0.rc1 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.4.2 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.4.1 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.4.0 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.3.3 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.3.2 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.3.1 app/views/kaminari/sunrise/_page.html.erb
sunrise-cms-0.3.0 app/views/kaminari/sunrise/_page.html.erb