Pagination replacement

- [x] Remove kaminari
- [x] Paginator with first, last, next, prev and gaps
- [x] Some kind of information about how many things are being displayed
Yes exactly :)

--  
Jens Ljungblad


On Monday 8 December 2014 at 10:42, Linus Pettersson wrote:

> In lib/godmin/resource/pagination.rb:
> > + def current_page > + params[:page].present? ? params[:page].to_i : 1 > + end > + > + def pagination_limit > + self.class.per_page > + end > + > + def pagination_offset > + (params[:page].to_i * self.class.per_page) - self.class.per_page > + end > + > + def pages > + pages = (1..total_pages).to_a > + > + return pages unless total_pages > 7  
> It seems weird to hardcode 7 all over the place :)
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/varvet/godmin/pull/37/files#r21442511).
>  
>  
>  
>  
>