Sha256: aba88ab3c062340d9e685f45b2fc311f99078561c2b89f62154d7c8b72f5bffd

Contents?: true

Size: 864 Bytes

Versions: 54

Compression:

Stored size: 864 Bytes

Contents

<span class="btn-group applied-filter constraint <%= @classes %>">
  <span class="constraint-value btn btn-outline-secondary">
    <% if @label.present? %>
      <span class="filter-name"><%= @label %></span>
    <% end %>
    <% if @value.present? %>
      <%= content_tag :span, @value, class: 'filter-value', title: strip_tags(@value) %>
    <% end %>
  </span>
  <% if @remove_path.present? %>
    <%= link_to(@remove_path, class: 'btn btn-outline-secondary remove') do %>
      <span class="remove-icon" aria-hidden="true">✖</span>
      <span class="sr-only visually-hidden">
        <%= if @label.blank?
            t('blacklight.search.filters.remove.value', value: @value)
          else
            t('blacklight.search.filters.remove.label_value', label: @label, value: @value)
          end
        %>
      </span>
    <% end %>
  <% end %>
</span>

Version data entries

54 entries across 53 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.39.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.38.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/components/blacklight/constraint_layout_component.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/components/blacklight/constraint_layout_component.html.erb
blacklight-8.3.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-8.2.2 app/components/blacklight/constraint_layout_component.html.erb
blacklight-8.2.1 app/components/blacklight/constraint_layout_component.html.erb
blacklight-8.2.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.37.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.36.2 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.36.1 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.36.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.35.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-8.1.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.34.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-8.0.1 app/components/blacklight/constraint_layout_component.html.erb
blacklight-8.0.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-8.0.0.beta8 app/components/blacklight/constraint_layout_component.html.erb
blacklight-8.0.0.beta7 app/components/blacklight/constraint_layout_component.html.erb