2011-02-24 22:04:59 -05:00
|
|
|
<%# Link to the "Previous" page
|
2011-02-11 02:53:41 -05:00
|
|
|
- available local variables
|
|
|
|
url: url to the previous page
|
2011-02-27 10:17:09 -05:00
|
|
|
current_page: a page object for the currently displayed page
|
2011-02-11 02:53:41 -05:00
|
|
|
num_pages: total number of pages
|
|
|
|
per_page: number of items to fetch per page
|
|
|
|
remote: data-remote
|
2011-02-08 16:59:27 -05:00
|
|
|
-%>
|
2011-02-27 10:17:09 -05:00
|
|
|
<span class="prev<%= ' disabled' if current_page.first? %>">
|
|
|
|
<%= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
|
2011-02-05 09:20:06 -05:00
|
|
|
</span>
|