Sha256: f3ffd08379abfc63cabad95c0dc3997bfee6e30708d8e076f7880bd0681d0557

Contents?: true

Size: 489 Bytes

Versions: 8

Compression:

Stored size: 489 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
-%>
<%= link_to page, url, {:remote => remote, class: "page#{ ' current' if page.current? }", :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
smart_table-0.0.8 ./app/views/kaminari/smart_table/_page.html.erb
smart_table-0.0.7 ./app/views/kaminari/smart_table/_page.html.erb
smart_table-0.0.6 ./app/views/kaminari/smart_table/_page.html.erb
smart_table-0.0.5 ./app/views/kaminari/smart_table/_page.html.erb
smart_table-0.0.4 ./app/views/kaminari/smart_table/_page.html.erb
smart_table-0.0.3 ./app/views/kaminari/smart_table/_page.html.erb
smart_table-0.0.2 ./app/views/kaminari/smart_table/_page.html.erb
smart_table-0.0.1 ./app/views/kaminari/smart_table/_page.html.erb