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
|
2011-02-11 07:53:41 +00:00
|
|
|
num_pages: total number of pages
|
|
|
|
per_page: number of items to fetch per page
|
|
|
|
remote: data-remote
|
2011-02-25 22:28:48 +00:00
|
|
|
%span{:class => "page#{' current' if page.current?}"}
|
2011-02-27 10:20:40 +00:00
|
|
|
= link_to_unless page.current?, page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
|