boissier_app/app/views/kaminari/_prev_link.html.haml
Nicolas Bally 6abf7679fd initial
2011-05-14 13:36:30 +02:00

10 lines
404 B
Plaintext

-# "Previous" with link
- available local variables
url: url to the previous 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.prev
= link_to "<", url+("&page=1"if (page) == 1).to_s, :class => 'prev', :rel => 'prev', :remote => remote