Sha256: 3e43df5a013dcdaeb0e63d75d3cc67d62e581b42c7cc23602b7768ba8280f133

Contents?: true

Size: 830 Bytes

Versions: 6

Compression:

Stored size: 830 Bytes

Contents

<%= render(@layout.new(facet_field: @facet_field)) do |component| %>
  <% component.with_label do %>
    <%= @facet_field.label %>
  <% end %>
  <% component.with_body do %>
    <%= render(Blacklight::FacetFieldInclusiveConstraintComponent.new(facet_field: @facet_field)) %>
    <ul class="facet-values list-unstyled">
      <%= render facet_items %>
    </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

6 entries across 6 versions & 1 rubygems

Version Path
blacklight-8.7.0 app/components/blacklight/facet_field_list_component.html.erb
blacklight-8.6.1 app/components/blacklight/facet_field_list_component.html.erb
blacklight-8.6.0 app/components/blacklight/facet_field_list_component.html.erb
blacklight-8.5.1 app/components/blacklight/facet_field_list_component.html.erb
blacklight-8.5.0 app/components/blacklight/facet_field_list_component.html.erb
blacklight-8.4.0 app/components/blacklight/facet_field_list_component.html.erb