forked from patricklindsay/wice_grid
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
will_paginate removed
- Loading branch information
Showing
10 changed files
with
67 additions
and
42 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
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,2 @@ | ||
%li.disabled | ||
%a{:href=> '#'} ... |
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,9 @@ | ||
-# Link to the "Next" page | ||
-# available local variables | ||
-# url: url to the next page | ||
-# current_page: a page object for the currently displayed page | ||
-# total_pages: total number of pages | ||
-# per_page: number of items to fetch per page | ||
-# remote: data-remote | ||
%li | ||
= link_to_unless current_page.last?, ::Wice::NlMessage['next_label'], url, :rel => 'next', :remote => remote |
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,10 @@ | ||
-# Link showing page number | ||
-# available local variables | ||
-# page: a page object for "this" page | ||
-# url: url to this page | ||
-# current_page: a page object for the currently displayed page | ||
-# total_pages: total number of pages | ||
-# per_page: number of items to fetch per page | ||
-# remote: data-remote | ||
%li{:class => page.current? ? 'active' : nil} | ||
= link_to page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} |
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,17 @@ | ||
-# The container tag | ||
-# available local variables | ||
-# current_page: a page object for the currently displayed page | ||
-# total_pages: total number of pages | ||
-# per_page: number of items to fetch per page | ||
-# remote: data-remote | ||
-# paginator: the paginator that renders the pagination tags inside | ||
= paginator.render do | ||
.pagination | ||
%ul | ||
= 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? |
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,9 @@ | ||
-# Link to the "Previous" page | ||
-# available local variables | ||
-# url: url to the previous page | ||
-# current_page: a page object for the currently displayed page | ||
-# total_pages: total number of pages | ||
-# per_page: number of items to fetch per page | ||
-# remote: data-remote | ||
%li | ||
= link_to_unless current_page.first?, ::Wice::NlMessage['previous_label'], url, :rel => 'prev', :remote => remote |
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 was deleted.
Oops, something went wrong.
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