mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
cosme
This commit is contained in:
parent
f76ba59f0b
commit
f7995fdbb3
7 changed files with 12 additions and 6 deletions
|
@ -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
|
||||
'
|
||||
|
|
|
@ -6,3 +6,4 @@
|
|||
remote : data-remote
|
||||
span.page.gap
|
||||
== raw(t 'views.pagination.truncate')
|
||||
'
|
||||
|
|
|
@ -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}
|
||||
'
|
||||
|
|
|
@ -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
|
||||
'
|
||||
|
|
|
@ -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}
|
||||
'
|
||||
|
|
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
'
|
||||
|
|
Loading…
Reference in a new issue