1
0
Fork 0
mirror of https://github.com/mcasimir/kaminari-bootstrap.git synced 2022-11-09 13:46:52 -05:00
mcasimir--kaminari-bootstrap/app/views/kaminari/_prev_page.html.erb
2013-07-13 00:05:04 +02:00

13 lines
470 B
Text

<%# Link to the "Previous" page
- available local variables
url: url to the previous page
current_page: a page object for the currently displayed page
total_pages: total number of pages
per_page: number of items to fetch per page
remote: data-remote
-%>
<% unless current_page.first? -%>
<li class="prev">
<%= link_to raw(t 'views.pagination.previous'), url, :remote => remote, :rel => 'prev' %>
</li>
<% end -%>