Sha256: 93b0555b2b390b7053ec00e0655a91b299eef335baf89cfb13e9d3767cfa63da

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

<% if page.current? %>
  <li class="<%= classNames 'page-item current dynamicScaffoldJs-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="<%= classNames('page-item dynamicScaffoldJs-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

4 entries across 4 versions & 1 rubygems

Version Path
dynamic_scaffold-0.1.3 app/views/dynamic_scaffold/bootstrap/kaminari/_page.html.erb
dynamic_scaffold-0.1.2 app/views/dynamic_scaffold/bootstrap/kaminari/_page.html.erb
dynamic_scaffold-0.1.1 app/views/dynamic_scaffold/bootstrap/kaminari/_page.html.erb
dynamic_scaffold-0.1.0 app/views/dynamic_scaffold/bootstrap/kaminari/_page.html.erb