Sha256: 37bc942337a783ae857675462740f24b8f6bb0e2f77ff6edbf2d34cd20a82742

Contents?: true

Size: 884 Bytes

Versions: 10

Compression:

Stored size: 884 Bytes

Contents

<%= render(@layout.new(facet_field: @facet_field)) do |component| %>
  <% component.with_label do %>
    <%= @facet_field.label %>
  <% end %>
  <% component.with_body do %>
    <%= helpers.render(Blacklight::FacetFieldInclusiveConstraintComponent.new(facet_field: @facet_field)) %>
    <ul class="facet-values list-unstyled">
      <%= render_facet_limit_list @facet_field.paginator, @facet_field.key %>
    </ul>
    <%# backwards compatibility, ugh %>
    <% if @layout == Blacklight::FacetFieldNoLayoutComponent && !@facet_field.in_modal? && @facet_field.modal_path %>
      <div class="more_facets">
        <%= link_to t("more_#{@facet_field.key}_html", scope: 'blacklight.search.facets', default: :more_html, field_name: @facet_field.label),
          @facet_field.modal_path,
          data: { blacklight_modal: 'trigger' } %>
      </div>
    <% end %>
  <% end %>
<% end %>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/components/blacklight/facet_field_list_component.html.erb
blacklight-7.39.0 app/components/blacklight/facet_field_list_component.html.erb
blacklight-7.38.0 app/components/blacklight/facet_field_list_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_list_component.html.erb
blacklight-7.37.0 app/components/blacklight/facet_field_list_component.html.erb
blacklight-7.36.2 app/components/blacklight/facet_field_list_component.html.erb
blacklight-7.36.1 app/components/blacklight/facet_field_list_component.html.erb
blacklight-7.36.0 app/components/blacklight/facet_field_list_component.html.erb
blacklight-7.35.0 app/components/blacklight/facet_field_list_component.html.erb
blacklight-7.34.0 app/components/blacklight/facet_field_list_component.html.erb