2011-02-11 07:53:41 +00:00
|
|
|
<%# Link showing page number
|
|
|
|
- available local variables
|
2011-02-27 15:17:09 +00:00
|
|
|
page: a page object for "this" page
|
2011-02-11 07:53:41 +00:00
|
|
|
url: url to this page
|
2011-02-27 15:17:09 +00:00
|
|
|
current_page: a page object for the currently displayed page
|
2012-05-25 06:31:53 +00:00
|
|
|
total_pages: total number of pages
|
2011-02-11 07:53:41 +00:00
|
|
|
per_page: number of items to fetch per page
|
|
|
|
remote: data-remote
|
2011-02-08 21:59:27 +00:00
|
|
|
-%>
|
2011-02-25 22:28:48 +00:00
|
|
|
<span class="page<%= ' current' if page.current? %>">
|
2016-11-30 17:19:50 +00:00
|
|
|
<%= link_to_unless page.current?, page, url, {remote: remote, rel: page.rel} %>
|
2011-02-05 14:20:06 +00:00
|
|
|
</span>
|