kaminari--kaminari/app/views/kaminari/_page.html.haml

11 lines
505 B
Plaintext
Raw Normal View History

-# 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
%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