Sha256: 929a24844ded2ca30910bf597399eb13e3cc98307783aa09681e8b143cb68bc2

Contents?: true

Size: 1.42 KB

Versions: 51

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

51 entries across 50 versions & 2 rubygems

Version Path
blacklight-7.27.1 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.27.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.26.1 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.26.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.25.3 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.25.2 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.25.1 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.25.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.24.0 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.23.0.1 app/components/blacklight/facet_field_pagination_component.html.erb
blacklight-7.23.0 app/components/blacklight/facet_field_pagination_component.html.erb