Sha256: 0813b63edc698a1b3c93bd915d881d0dfeb49f39dd5cc379e29b3f19d085759d

Contents?: true

Size: 1.11 KB

Versions: 82

Compression:

Stored size: 1.11 KB

Contents

<%  # local params:
    # label
    # value
    # options =>
    #   :remove => url for a remove constraint link
    #   :classes => array of classes to add to container span
    options ||= {}
%>

<span class="btn-group appliedFilter constraint <%= options[:classes].join(" ") if options[:classes] %>">
  <span class="constraint-value btn btn-sm btn-default btn-disabled">
    <% unless label.blank? %>
      <span class="filterName"><%= label %></span>
    <% end %>
    <% unless value.blank? %>
      <%= content_tag :span, value, class: 'filterValue', title: value %>
    <% end %>
  </span>
  <% unless options[:remove].blank? %>
    <% accessible_remove_label = content_tag :span, class: 'sr-only' do
        if label.blank?
          t('blacklight.search.filters.remove.value', value: value)
        else
          t('blacklight.search.filters.remove.label_value', label: label, value: value)
        end
      end
    %>

    <%= link_to(content_tag(:span, '', class: 'glyphicon glyphicon-remove') + accessible_remove_label,
			options[:remove], class: 'btn btn-default btn-sm remove dropdown-toggle'
		) %>
  <%- end -%>
</span>

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
blacklight-6.25.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.24.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.23.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.22.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.21.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.20.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.19.2 app/views/catalog/_constraints_element.html.erb
blacklight-6.19.1 app/views/catalog/_constraints_element.html.erb
blacklight-6.19.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.18.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.17.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.16.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.15.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.14.1 app/views/catalog/_constraints_element.html.erb
blacklight-6.14.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.13.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.12.0 app/views/catalog/_constraints_element.html.erb
blacklight-6.11.2 app/views/catalog/_constraints_element.html.erb
blacklight-6.11.1 app/views/catalog/_constraints_element.html.erb
blacklight-6.11.0 app/views/catalog/_constraints_element.html.erb