Replace will_paginate with kaminari. Fixed foodcoop/users page.

This commit is contained in:
benni 2012-10-08 15:24:32 +02:00
parent 1708df3f6c
commit ab81ef09d5
17 changed files with 162 additions and 64 deletions

View file

@ -0,0 +1,12 @@
-#
Link to the "Previous" page
- available local variables
url: url to the previous page
current_page: a page object for the currently displayed page
num_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
- unless current_page.first?
%li{:class=>"prev"}
= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote