Sha256: 2765e2688fb3ab7c3a37f81f051b0480bf077e857d61def154f706cb64d42741

Contents?: true

Size: 897 Bytes

Versions: 16

Compression:

Stored size: 897 Bytes

Contents

<!-- @TODO: result helpers -->
<% if @documents.meta.present? && @documents.meta['pages'].present? %>
  <% result_start = @documents.meta['pages']['offset_value'] + 1 %>
  <% result_end = @documents.results.size + result_start - 1 %>

  <span class='float-right'>
    Results: <%= result_start %> - <%= result_end %> of <%= @documents.meta['pages']['total_count'] %>
    <span class="dropdown">
      <button class="btn btn-sm btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        Sort by
      </button>
      <span class="dropdown-menu" aria-labelledby="dropdownMenuButton">
        <% @documents.sorts.each do |sort| %>
          <%= sort_link(sort) %>
        <% end %>
      </span>
    </span>
    <%= previous_link(@documents.links) %>
    <%= next_link(@documents.links) %>
  </span>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
geoblacklight_admin-0.7.0 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.6.3 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.6.2 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.6.1 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.6.0 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.5.1 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.5.0 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.4.2 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.4.1 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.4.0 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.3.2 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.3.1 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.3.0 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.2.1 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.1.0 app/views/admin/documents/_result_pagination.html.erb
geoblacklight_admin-0.0.1 app/views/admin/documents/_result_pagination.html.erb