1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
This commit is contained in:
Akira Matsuda 2011-04-22 20:35:22 +09:00
parent f76ba59f0b
commit f7995fdbb3
7 changed files with 12 additions and 6 deletions

View file

@ -6,4 +6,5 @@
per_page : number of items to fetch per page
remote : data-remote
span.first
== link_to_unless(current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote)
== link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote
'

View file

@ -6,3 +6,4 @@
remote : data-remote
span.page.gap
== raw(t 'views.pagination.truncate')
'

View file

@ -6,4 +6,5 @@
per_page : number of items to fetch per page
remote : data-remote
span.last
== link_to_unless(current_page.last?, raw(t 'views.pagination.last'), url, { :remote => remote })
== link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote}
'

View file

@ -6,4 +6,5 @@
per_page : number of items to fetch per page
remote : data-remote
span.next
== link_to_unless(current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote)
== link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote
'

View file

@ -7,4 +7,5 @@
per_page : number of items to fetch per page
remote : data-remote
span class="page#{' current' if page.current?}"
== link_to_unless(page.current?, page, url, { :remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil })
== link_to_unless page.current?, page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
'

View file

@ -7,7 +7,7 @@
paginator : the paginator that renders the pagination tags inside
== paginator.render do
div.nav.pagination
nav.pagination
== first_page_tag unless current_page.first?
== prev_page_tag unless current_page.first?
- each_page do |page|

View file

@ -6,4 +6,5 @@
per_page : number of items to fetch per page
remote : data-remote
span.prev
== link_to_unless(current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote)
== link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote
'