forked from kaminari/kaminari
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update views according to new convention
- Loading branch information
Showing
20 changed files
with
148 additions
and
130 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,9 +1,9 @@ | ||
<%# available local variables: | ||
page: the page number of this page | ||
page_url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
<%# The current page | ||
- available local variables | ||
page: the page number of this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-%> | ||
<span class="page current"><%= page %></span> |
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,9 +1,9 @@ | ||
-# available local variables: | ||
page: the page number of this page | ||
page_url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-# The current page | ||
- available local variables | ||
page: the page number of this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
%span.page.current | ||
= page |
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,12 @@ | ||
<%# available local variables: | ||
page: the page number of this page | ||
page_url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
<%# Link with page number that appears at the leftmost | ||
- available local variables | ||
page: the page number of this page | ||
url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-%> | ||
<span class="page first"> | ||
<%= link_to page, page_url, :remote => remote %> | ||
<%= link_to page, url, :remote => remote %> | ||
</span> |
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,9 +1,10 @@ | ||
-# available local variables: | ||
page: the page number of this page | ||
page_url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-# Link with page number that appears at the leftmost | ||
- available local variables | ||
page: the page number of this page | ||
url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
%span.page.first | ||
= link_to page, page_url, :remote => remote | ||
= link_to page, url, :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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<%# available local variables: | ||
page: the page number of this page | ||
page_url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
<%# Link with page number that appears at the rightmost | ||
- available local variables | ||
page: the page number of this page | ||
url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-%> | ||
<span class="page last"> | ||
<%= link_to page, page_url, :remote => remote %> | ||
<%= link_to page, url, :remote => remote %> | ||
</span> |
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,9 +1,10 @@ | ||
-# available local variables: | ||
page: the page number of this page | ||
page_url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-# Link with page number that appears at the rightmost | ||
- available local variables | ||
page: the page number of this page | ||
url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
%span.page.last | ||
= link_to page, page_url, :remote => remote | ||
= link_to page, url, :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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<%# available local variables: | ||
next_url: url to the next page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
<%# "Next" with link | ||
- available local variables | ||
url: url to the next page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-%> | ||
<span class="next"> | ||
<%= link_to raw('Next »'), next_url, :class => 'next', :rel => 'next', :remote => remote %> | ||
<%= link_to raw('Next »'), url, :class => 'next', :rel => 'next', :remote => remote %> | ||
</span> |
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,8 +1,9 @@ | ||
-# available local variables: | ||
next_url: url to the next page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-# "Next" with link | ||
- available local variables | ||
url: url to the next page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
%span.next | ||
= link_to raw('Next »'), next_url, :class => 'next', :rel => 'next', :remote => remote | ||
= link_to raw('Next »'), url, :class => 'next', :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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<%# available local variables: | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
<%# "Next" without link | ||
- available local variables | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-%> | ||
<span class="next"></span> |
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,6 +1,7 @@ | ||
-# available local variables: | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-# "Next" without link | ||
- available local variables | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
%span.next |
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,12 @@ | ||
<%# available local variables: | ||
page: the page number of this page | ||
page_url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
<%# Link showing page number | ||
- available local variables | ||
page: the page number of this page | ||
url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-%> | ||
<span class="page"> | ||
<%= link_to page, page_url, :remote => remote %> | ||
<%= link_to page, url, :remote => remote %> | ||
</span> |
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,9 +1,10 @@ | ||
-# available local variables: | ||
page: the page number of this page | ||
page_url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-# Link showing page number | ||
- available local variables | ||
page: the page number of this page | ||
url: url to this page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
%span.page | ||
= link_to page, page_url, :remote => remote | ||
= link_to page, url, :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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
-# available local variables: | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-# The container tag | ||
- available local variables | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
%nav.pagination | ||
= content_for :kaminari_paginator_tags |
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,10 +1,11 @@ | ||
<%# available local variables: | ||
prev_url: url to the previous page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
<%# "Previous" with link | ||
- available local variables | ||
url: url to the previous page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-%> | ||
<span class="prev"> | ||
<%= link_to raw('« Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote %> | ||
<%= link_to raw('« Prev'), url, :class => 'prev', :rel => 'prev', :remote => remote %> | ||
</span> |
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,8 +1,9 @@ | ||
-# available local variables: | ||
prev_url: url to the previous page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-# "Previous" with link | ||
- available local variables | ||
url: url to the previous page | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
%span.prev | ||
= link_to raw('« Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote | ||
= link_to raw('« Prev'), url, :class => 'prev', :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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<%# available local variables: | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
<%# "Previous" without link | ||
- available local variables | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-%> | ||
<span class="prev"></span> |
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,6 +1,7 @@ | ||
-# available local variables: | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-# "Previous" without link | ||
- available local variables | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
%span.prev |
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,7 +1,8 @@ | ||
<%# available local variables: | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
<%# Non-link tag that stands for skipped pages... | ||
- available local variables | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-%> | ||
<span class="page">...</span> |
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,7 +1,8 @@ | ||
-# available local variables: | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
-# Non-link tag that stands for skipped pages... | ||
- available local variables | ||
current_page: the page number of currently displayed page | ||
num_pages: total number of pages | ||
per_page: number of items to fetch per page | ||
remote: data-remote | ||
%span.page | ||
\... |