Sha256: 8cdf654dddee4a8ee31b220a645298b0c83120dce8097ed25d1be966fbb0220d

Contents?: true

Size: 828 Bytes

Versions: 20

Compression:

Stored size: 828 Bytes

Contents

<% per_page = params[:per_page] ? params[:per_page].to_i : 24 %>

<div class="d-flex flex-row-reverse flex-md-row align-items-center justify-content-between justify-content-md-end my-1">
  <ul class="pagination pagination-sm my-0" role="group" aria-label="...">
    <li class="page-item <%= 'active' if per_page == 12 %>">
      <%= link_to 12, url_for(params.merge(per_page: 12)), class: 'page-link' %>
    </li>
    <li class="page-item <%= 'active' if per_page == 24 %>">
      <%= link_to 24, url_for(params.merge(per_page: nil)), class: 'page-link' %>
    </li>
    <li class="page-item <%= 'active' if per_page == 48 %>">
      <%= link_to 48, url_for(params.merge(per_page: 48)), class: 'page-link' %>
    </li>
  </ul>
  <div class="d-none d-md-block ms-2 me-md-2 text-secondary">
    <%= t('.title') %>
  </div>
</div>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
headmin-0.2.9 app/views/headmin/pagination/_per_page.html.erb
headmin-0.5.2 app/views/headmin/pagination/_per_page.html.erb
headmin-0.5.1 app/views/headmin/pagination/_per_page.html.erb
headmin-0.5.0 app/views/headmin/pagination/_per_page.html.erb
headmin-0.4.2 app/views/headmin/pagination/_per_page.html.erb
headmin-0.4.1 app/views/headmin/pagination/_per_page.html.erb
headmin-0.4.0 app/views/headmin/pagination/_per_page.html.erb
headmin-0.3.4 app/views/headmin/pagination/_per_page.html.erb
headmin-0.3.3 app/views/headmin/pagination/_per_page.html.erb
headmin-0.3.2 app/views/headmin/pagination/_per_page.html.erb
headmin-0.3.1 app/views/headmin/pagination/_per_page.html.erb
headmin-0.2.8 app/views/headmin/pagination/_per_page.html.erb
headmin-0.2.7 app/views/headmin/pagination/_per_page.html.erb
headmin-0.2.6 app/views/headmin/pagination/_per_page.html.erb
headmin-0.2.5 app/views/headmin/pagination/_per_page.html.erb
headmin-0.2.4 app/views/headmin/pagination/_per_page.html.erb
headmin-0.2.3 app/views/headmin/pagination/_per_page.html.erb
headmin-0.2.2 app/views/headmin/pagination/_per_page.html.erb
headmin-0.2.1 app/views/headmin/pagination/_per_page.html.erb
headmin-0.2.0 app/views/headmin/pagination/_per_page.html.erb