Sha256: 01d4036df601556365b318066d7604471397314791c6c1aa88f2eeaf66a2780b

Contents?: true

Size: 829 Bytes

Versions: 12

Compression:

Stored size: 829 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">✖</span>
      <span class="sr-only">
        <%= 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

12 entries across 12 versions & 1 rubygems

Version Path
blacklight-7.15.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.14.1 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.14.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.13.2 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.13.1 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.13.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.12.1 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.12.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.11.1 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.10.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.9.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.8.1 app/components/blacklight/constraint_layout_component.html.erb