Say I have 30 pages being paginated with Kaminari:
#800 books, 25 per page
=paginate @books, :outer_window => 3, :window => 3
It looks like this:
1 2 3 4 … 30 31 32
There's no way to get to page 16 without clicking 5 times.
- 1* 2 3 [ 4 ] … 30 31 32
- 1 2 3 4* 5 6 [ 7 ] … 30 31 32
- 1 2 3 4 5 6 7* 8 9 [ 10 ] … 30 31 32
- 1 2 3 … 7 8 9 10* 11 12 [ 13 ] … 30 31 32
- 1 2 3 … 10 11 12 13* 14 15 [ 16 ] … 30 31 32
(* current page, [] = click)
It seems like a lot of work to get to the middle of the stack.
- How can I extend Kaminari to go to page 16 when clicking on the gap (...) ?
- Is it possible to extend Kaminari to show the middle from the start?
1 2 3 4 ... 15 16 17 ... 30 31 32