tuxwebror/app/views/kaminari/_page.html.erb
2018-12-21 19:06:39 +01:00

18 lines
468 B
Text

<%
=begin
Link showing page number
- available local variables
page : a page object for "this" page
url : url to this 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
=end
%>
<li>
<%= link_to page, url, {remote: remote, rel: page.rel, class: "pagination-link#{' is-current' if page.current?}"} %>
</li>