2011-02-11 07:53:41 +00:00
|
|
|
-# Link showing page number
|
|
|
|
- available local variables
|
|
|
|
page: the page number of this page
|
|
|
|
url: url to this page
|
|
|
|
current_page: the page number of currently displayed page
|
|
|
|
num_pages: total number of pages
|
|
|
|
per_page: number of items to fetch per page
|
|
|
|
remote: data-remote
|
2011-02-25 01:35:21 +00:00
|
|
|
%span{:class => "page#{' first' if page.first?}#{' last' if page.last?}#{' current' if page.current?}"}
|
|
|
|
= link_to_unless page == current_page, page, url, :remote => remote
|