Skip to content

Commit

Permalink
Fix:ページネーションが死んでた
Browse files Browse the repository at this point in the history
  • Loading branch information
j-omine committed Dec 8, 2018
1 parent a50fa83 commit 9d1e520
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/views/kaminari/_paginator.html.slim
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
= paginator.render do
== paginator.render do
ul.pagination
= first_page_tag unless current_page.first?
= prev_page_tag unless current_page.first?
== first_page_tag unless current_page.first?
== prev_page_tag unless current_page.first?
- each_page do |page|
- if page.left_outer? || page.right_outer? || page.inside_window?
= page_tag page
== page_tag page
- elsif !page.was_truncated?
= gap_tag
= next_page_tag unless current_page.last?
= last_page_tag unless current_page.last?
== gap_tag
== next_page_tag unless current_page.last?
== last_page_tag unless current_page.last?

0 comments on commit 9d1e520

Please sign in to comment.