Sha256: 929a24844ded2ca30910bf597399eb13e3cc98307783aa09681e8b143cb68bc2

Contents?: true

Size: 1.42 KB

Versions: 49

Compression:

Stored size: 1.42 KB

Contents

<div class="prev_next_links btn-group">
  <%= helpers.link_to_previous_page @facet_field.paginator, raw(t('views.pagination.previous')), params: @facet_field.search_state.to_h, param_name: param_name, class: 'btn btn-link', data: { blacklight_modal: "preserve" } do %>
    <%= content_tag :span, raw(t('views.pagination.previous')), class: 'disabled btn' %>
  <% end %>

  <%= helpers.link_to_next_page @facet_field.paginator, raw(t('views.pagination.next')), params: @facet_field.search_state.to_h, param_name: param_name, class: 'btn btn-link',  data: { blacklight_modal: "preserve" } do %>
    <%= content_tag :span, raw(t('views.pagination.next')), class: 'disabled btn' %>
  <% end %>
</div>

<div class="sort-options btn-group">
  <% if @facet_field.paginator.sort == 'index' -%>
    <span class="active az btn btn-outline-secondary"><%= t('blacklight.search.facets.sort.index') %></span>
    <%= helpers.link_to(t('blacklight.search.facets.sort.count'), sort_facet_url('count'), class: "sort_change numeric btn btn-outline-secondary", data: { blacklight_modal: "preserve" }) %>
  <% elsif @facet_field.paginator.sort == 'count' -%>
    <%= helpers.link_to(t('blacklight.search.facets.sort.index'), sort_facet_url('index'), class: "sort_change az btn btn-outline-secondary",  data: { blacklight_modal: "preserve" }) %>
    <span class="active numeric btn btn-outline-secondary"><%= t('blacklight.search.facets.sort.count') %></span>
  <% end -%>
</div>

Version data entries

49 entries across 48 versions & 2 rubygems

Version Path
blacklight-8.6.1 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.40.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-8.6.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-8.5.1 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-8.5.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.39.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-8.4.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.38.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-8.3.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-8.2.2 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-8.2.1 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-8.2.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.37.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.36.2 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.36.1 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.36.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.35.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-8.1.0 app/components/blacklight/facet_field_pagination_component.html.erb