summaryrefslogtreecommitdiff
path: root/app/views/kaminari/_next_page.html.haml
blob: ea6cab2f44b9aa4b66cc46a2321b7669b14b7ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-#  Link to the "Next" page
-#  available local variables
-#    url:           url to the next page
-#    current_page:  a page object for the currently displayed page
-#    num_pages:     total number of pages
-#    per_page:      number of items to fetch per page
-#    remote:        data-remote
- if current_page.last?
  %li.disabled
    %span= raw(t 'views.pagination.next')
- else
  %li= link_to(raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote)