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:
parent
dd77a7dcb3
commit
da88729c9e
20 changed files with 148 additions and 130 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
\...
|
||||
|
|
Loading…
Reference in a new issue