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,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>

View file

@ -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

View file

@ -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>

View file

@ -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

View file

@ -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>

View file

@ -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

View file

@ -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 &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
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 &raquo;'), next_url, :class => 'next', :rel => 'next', :remote => remote
= link_to raw('Next &raquo;'), url, :class => 'next', :rel => 'next', :remote => remote

View file

@ -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>

View file

@ -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

View file

@ -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>

View file

@ -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

View file

@ -1,8 +1,9 @@
<%# 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 class='pagination'>
<%= content_for :kaminari_paginator_tags %>

View file

@ -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

View file

@ -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('&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
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('&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,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>

View file

@ -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

View file

@ -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>

View file

@ -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
\...