stadtratmonitor/app/views/kaminari/_paginator.html.slim

13 lines
449 B
Text
Raw Permalink Normal View History

2015-04-27 23:14:48 +02:00
= paginator.render do
.pagination-centered
ul.pagination
2016-02-24 10:58:15 +01:00
== first_page_tag unless current_page.first?
== prev_page_tag unless current_page.first?
2015-04-27 23:14:48 +02:00
- each_page do |page|
- if page.left_outer? || page.right_outer? || page.inside_window?
2016-02-24 10:58:15 +01:00
== page_tag page
2015-04-27 23:14:48 +02:00
- elsif !page.was_truncated?
2016-02-24 10:58:15 +01:00
== gap_tag
== next_page_tag unless current_page.last?
== last_page_tag unless current_page.last?