mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
Add pagination via kaminari
This commit is contained in:
parent
f71c083722
commit
40eeac2021
13 changed files with 57 additions and 5 deletions
4
app/views/kaminari/_page.html.slim
Normal file
4
app/views/kaminari/_page.html.slim
Normal file
|
@ -0,0 +1,4 @@
|
|||
li{class="#{'current' if page.current?}"}
|
||||
= link_to(page, page.current? ? '#' : url,
|
||||
{ :remote => remote,
|
||||
:rel => page.next? ? 'next' : page.prev? ? 'prev' : nil })
|
Loading…
Add table
Add a link
Reference in a new issue