sul-dlss/SearchWorks

View on GitHub
app/views/kaminari/blacklight_compact/_next_page.html.erb

Summary

Maintainability
Test Coverage
<%# 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
-%>
<% unless current_page.last? %>
  <%= link_to raw(t 'views.pagination_compact.next'), url, :rel => 'next', class: 'btn btn-link btn-sul-toolbar', role: 'button', :remote => remote %>
<% end %>