Skip to content

Commit

Permalink
Merge e2c4316 into f6d7756
Browse files Browse the repository at this point in the history
  • Loading branch information
hellcp-work committed Feb 3, 2023
2 parents f6d7756 + e2c4316 commit c2ed293
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions app/views/kaminari/_paginator.html.haml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
= paginator.render do
.pagination
%ul
= 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
- elsif !page.was_truncated?
= gap_tag
= next_page_tag unless current_page.last?
= last_page_tag unless current_page.last?
%ul.pagination
= 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
- elsif !page.was_truncated?
= gap_tag
= next_page_tag unless current_page.last?
= last_page_tag unless current_page.last?

0 comments on commit c2ed293

Please sign in to comment.