Sha256: 984845f63cd92bf0ace71478bf522e8807c5d7118cb4485d28ad48b0bed75d63

Contents?: true

Size: 701 Bytes

Versions: 2

Compression:

Stored size: 701 Bytes

Contents

<%
  # headmin/notifications
  #
  # ==== Options
  # * +collection</tt> - Kaminari collection that accepts a method .total_count
  #
  # ==== Examples
  #   Basic version
  #   <%= render "headmin/pagination, collection: @pages" %#>
%>

<div class="d-flex flex-row-reverse flex-md-row align-items-center justify-content-between justify-content-md-end my-1">
  <% content_for :collection_total_count, collection.total_count.to_s unless content_for?(:collection_total_count) %>
  <div class="ms-2 me-md-2 text-secondary flex-grow-1 flex-shrink-0">
    <%= t('.items', count: content_for(:collection_total_count).to_i) %>
  </div>
  <%= paginate collection, views_prefix: 'headmin/pagination' %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
headmin-0.5.1 app/views/headmin/_pagination.html.erb
headmin-0.5.0 app/views/headmin/_pagination.html.erb