Sha256: 43f43429231f4c9029cee6b8217ece3af88f7fb24dd8ce6e2f715bd2b95118f1

Contents?: true

Size: 848 Bytes

Versions: 9

Compression:

Stored size: 848 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">
        <%= 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

9 entries across 9 versions & 1 rubygems

Version Path
blacklight-7.19.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.18.1 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.18.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.17.2 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.17.1 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.17.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.16.0 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.15.2 app/components/blacklight/constraint_layout_component.html.erb
blacklight-7.15.1 app/components/blacklight/constraint_layout_component.html.erb