<% if pagination.has_multiple_pages? %>
<% if pagination.has_first_page? %> <%= link_to t('pager.first'), pagination.first_page_path, class: 'first' %> <% end %> <% if pagination.has_previous_page? %> <%= link_to t('pager.previous'), pagination.previous_page_path, class: 'previous' %> <% end %> <% pagination.navigation.pages.each do |page| %> <% if pagination.is_current_page? page %> <%= page %> <% else %> <%= link_to page, pagination.page_path(page), class: 'page' %> <% end %> <% end %> <% if pagination.has_next_page? %> <%= link_to t('pager.next'), pagination.next_page_path, class: 'next' %> <% end %> <% if pagination.has_last_page? %> <%= link_to t('pager.last'), pagination.last_page_path, class: 'last' %> <% end %>
<% end %>