summaryrefslogtreecommitdiff
path: root/app/views/kaminari/_prev_page.html.haml
blob: d274bf4e2df09ef935c8572928e8f37b89e13c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-#  Link to the "Previous" page
-#  available local variables
-#    url:           url to the previous 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.first?
  %li.disabled
    %span= raw(t 'views.pagination.previous')
- else
  %li= link_to(raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote)