1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

update views according to new convention

This commit is contained in:
Akira Matsuda 2011-02-11 16:53:41 +09:00
parent dd77a7dcb3
commit da88729c9e
20 changed files with 148 additions and 130 deletions

View file

@ -1,6 +1,6 @@
<%# available local variables:
<%# The current page
- 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

View file

@ -1,6 +1,6 @@
-# available local variables:
-# The current page
- 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

View file

@ -1,11 +1,12 @@
<%# available local variables:
<%# Link with page number that appears at the leftmost
- available local variables
page: the page number of this page
page_url: url to 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>

View file

@ -1,9 +1,10 @@
-# available local variables:
-# Link with page number that appears at the leftmost
- available local variables
page: the page number of this page
page_url: url to 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

View file

@ -1,11 +1,12 @@
<%# available local variables:
<%# Link with page number that appears at the rightmost
- available local variables
page: the page number of this page
page_url: url to 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>

View file

@ -1,9 +1,10 @@
-# available local variables:
-# Link with page number that appears at the rightmost
- available local variables
page: the page number of this page
page_url: url to 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

View file

@ -1,10 +1,11 @@
<%# available local variables:
next_url: url to the next page
<%# "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 &raquo;'), next_url, :class => 'next', :rel => 'next', :remote => remote %>
<%= link_to raw('Next &raquo;'), url, :class => 'next', :rel => 'next', :remote => remote %>
</span>

View file

@ -1,8 +1,9 @@
-# available local variables:
next_url: url to the next page
-# "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 &raquo;'), next_url, :class => 'next', :rel => 'next', :remote => remote
= link_to raw('Next &raquo;'), url, :class => 'next', :rel => 'next', :remote => remote

View file

@ -1,4 +1,5 @@
<%# available local variables:
<%# "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

View file

@ -1,4 +1,5 @@
-# available local variables:
-# "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

View file

@ -1,11 +1,12 @@
<%# available local variables:
<%# Link showing page number
- available local variables
page: the page number of this page
page_url: url to 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>

View file

@ -1,9 +1,10 @@
-# available local variables:
-# Link showing page number
- available local variables
page: the page number of this page
page_url: url to 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

View file

@ -1,4 +1,5 @@
<%# available local variables:
<%# 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

View file

@ -1,4 +1,5 @@
-# available local variables:
-# 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

View file

@ -1,10 +1,11 @@
<%# available local variables:
prev_url: url to the previous page
<%# "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('&laquo; Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote %>
<%= link_to raw('&laquo; Prev'), url, :class => 'prev', :rel => 'prev', :remote => remote %>
</span>

View file

@ -1,8 +1,9 @@
-# available local variables:
prev_url: url to the previous page
-# "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('&laquo; Prev'), prev_url, :class => 'prev', :rel => 'prev', :remote => remote
= link_to raw('&laquo; Prev'), url, :class => 'prev', :rel => 'prev', :remote => remote

View file

@ -1,4 +1,5 @@
<%# available local variables:
<%# "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

View file

@ -1,4 +1,5 @@
-# available local variables:
-# "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

View file

@ -1,4 +1,5 @@
<%# available local variables:
<%# 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

View file

@ -1,4 +1,5 @@
-# available local variables:
-# 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