Sha256: 31e869001834656fee22aa720d133df82ab5112fd96607ef44ec087f9f45e257

Contents?: true

Size: 623 Bytes

Versions: 41

Compression:

Stored size: 623 Bytes

Contents

<% if page.current? %>
  <li class="<%= class_names 'page-item current js-ds-page-item', {'active': dynamic_scaffold.list.pagination.highlight_current} %>">
    <%= content_tag :a, dynamic_scaffold.list.pagination.page_number(page, @records), remote: remote, rel: (page.next? ? 'next' : (page.prev? ? 'prev' : nil)), class: 'page-link' %>
  </li>
<% else %>
  <li class="<%= class_names('page-item js-ds-page-item', dynamic_scaffold.list.pagination.page_class(page, @records)) %>">
    <%= link_to page, url, remote: remote, rel: (page.next? ? 'next' : (page.prev? ? 'prev' : nil)), class: 'page-link' %>
  </li>
<% end %>

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
dynamic_scaffold-0.7.0 app/views/dynamic_scaffold/bootstrap/kaminari/_page.html.erb