Sha256: deade2ac249c1b855382a74bff5b49b2827cc8c4f36ad60a6724281dfaabc931

Contents?: true

Size: 1.3 KB

Versions: 5

Compression:

Stored size: 1.3 KB

Contents

<div class="card facet-limit blacklight-<%= @facet_field.key %> <%= 'facet-limit-active' if @facet_field.active? %>">
  <h3 class="card-header p-0 facet-field-heading" id="<%= @facet_field.html_id %>-header">
    <button
      type="button"
      class="btn w-100 d-block btn-block p-2 text-start text-left collapse-toggle <%= "collapsed" if @facet_field.collapsed? %>"
      data-toggle="collapse"
      data-bs-toggle="collapse"
      data-target="#<%= @facet_field.html_id %>"
      data-bs-target="#<%= @facet_field.html_id %>"
      aria-expanded="<%= @facet_field.collapsed? ? 'false' : 'true' %>"
      arial-controls="<%= @facet_field.html_id %>"
    >
      <%= label %>
    </button>
  </h3>
  <div id="<%= @facet_field.html_id %>" role="region" aria-labelledby="<%= @facet_field.html_id %>-header" class="panel-collapse facet-content collapse <%= "show" unless @facet_field.collapsed? %>">
    <div class="card-body">
      <%= body %>

      <% if @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', turbo: false } %>
        </div>
      <% end %>
    </div>
  </div>
</div>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/components/blacklight/facet_field_component.html.erb
blacklight-7.39.0 app/components/blacklight/facet_field_component.html.erb
blacklight-7.38.0 app/components/blacklight/facet_field_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_component.html.erb
blacklight-7.37.0 app/components/blacklight/facet_field_component.html.erb