-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from j-omine/master
Fix:ページネーションが死んでた
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |