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