Sha256: f06ca9eab2d3f49a1189f328dd3d77c43106423936c160f543cd506687f92470

Contents?: true

Size: 828 Bytes

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/pagination/_per_page.html.erb
headmin-0.6.2 app/views/headmin/pagination/_per_page.html.erb
headmin-0.6.1 app/views/headmin/pagination/_per_page.html.erb
headmin-0.6.0 app/views/headmin/pagination/_per_page.html.erb
headmin-0.5.9 app/views/headmin/pagination/_per_page.html.erb
headmin-0.5.8 app/views/headmin/pagination/_per_page.html.erb
headmin-0.5.7 app/views/headmin/pagination/_per_page.html.erb
headmin-0.5.6 app/views/headmin/pagination/_per_page.html.erb
headmin-0.5.5 app/views/headmin/pagination/_per_page.html.erb
headmin-0.5.4 app/views/headmin/pagination/_per_page.html.erb
headmin-0.5.3 app/views/headmin/pagination/_per_page.html.erb