-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 #2968 from lazebny/add-without-count-paginator
Add big table limited pagination
- Loading branch information
Showing
6 changed files
with
91 additions
and
20 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
app/views/kaminari/ra-twitter-bootstrap/without_count/_next_page.html.haml
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- if current_page.last? | ||
%li.next.disabled= link_to raw(t 'admin.pagination.next'), '#' | ||
- else | ||
%li.next= link_to raw(t 'admin.pagination.next'), url, class: (remote ? 'pjax' : '') |
4 changes: 4 additions & 0 deletions
4
app/views/kaminari/ra-twitter-bootstrap/without_count/_paginator.html.haml
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
= paginator.render do | ||
%ul.pagination | ||
= prev_page_tag if !current_page.first? | ||
= next_page_tag |
4 changes: 4 additions & 0 deletions
4
app/views/kaminari/ra-twitter-bootstrap/without_count/_prev_page.html.haml
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- if current_page.first? | ||
%li.prev.disabled= link_to raw(t 'admin.pagination.previous'), '#' | ||
- else | ||
%li.prev= link_to raw(t 'admin.pagination.previous'), url, class: (remote ? 'pjax' : '') |
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
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
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