Skip to content

Commit

Permalink
Merge pull request #7 from j-omine/master
Browse files Browse the repository at this point in the history
Fix:ページネーションが死んでた
  • Loading branch information
mikosu3 authored Dec 8, 2018
2 parents 58dbf58 + 9d1e520 commit 50d48b7
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 50d48b7

Please sign in to comment.