2011-02-11 02:53:41 -05:00
|
|
|
-# Link showing page number
|
2011-04-27 11:36:14 -04:00
|
|
|
-# 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
|
2012-05-25 02:31:53 -04:00
|
|
|
-# total_pages: total number of pages
|
2011-04-27 11:36:14 -04:00
|
|
|
-# per_page: number of items to fetch per page
|
|
|
|
-# remote: data-remote
|
2011-02-25 17:28:48 -05:00
|
|
|
%span{:class => "page#{' current' if page.current?}"}
|
2011-02-27 05:20:40 -05:00
|
|
|
= link_to_unless page.current?, page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
|