Sha256: 311ac654d5ae341503fc2d810f11244de752280e9963dca84bc07b784fa9a20b

Contents?: true

Size: 1.36 KB

Versions: 19

Compression:

Stored size: 1.36 KB

Contents

<%- # local params:
    # label 
    # value
    # options =>
    #   :remove => url for a remove constraint link
    #   :classes => array of classes to add to container span
    options ||= {}
    options[:escape_label] = true unless options.has_key?(:escape_label)
    options[:escape_value] = true unless options.has_key?(:escape_value)
-%>

<span class="appliedFilter constraint <%= options[:classes].join(" ") if options[:classes] %>">
      <%- unless label.blank? -%>
        <span class="filterName"><%= options[:escape_label] ? h(label) : raw(label) %></span> 
      <%- end -%>
      <%- unless value.blank? -%>
        <span class="filterValue"><%= options[:escape_value] ? h(value) : raw(value) %></span>
      <%- end -%>
      <%- unless options[:remove].blank? -%>
        <% accessible_remove_label =               
                if label.blank?
                  t('blacklight.search.filters.remove.value', :value => (options[:escape_value] ? h(value) : value))
                else
                  t('blacklight.search.filters.remove.label_value', :label => (options[:escape_label] ? h(label) : label), :value => (options[:escape_value] ? h(value) : value))
                end              
        %>                
        <%= link_to(accessible_remove_label.html_safe,
					options[:remove],
					:class=>'btnRemove imgReplace'
				) %>
      <%- end -%>
</span>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
blacklight-4.9.0 app/views/catalog/_constraints_element.html.erb
blacklight-4.8.0 app/views/catalog/_constraints_element.html.erb
blacklight-4.7.0 app/views/catalog/_constraints_element.html.erb
blacklight-4.7.0.pre1 app/views/catalog/_constraints_element.html.erb
blacklight-4.6.3 app/views/catalog/_constraints_element.html.erb
blacklight-4.6.2 app/views/catalog/_constraints_element.html.erb
blacklight-4.6.1 app/views/catalog/_constraints_element.html.erb
blacklight-4.6.0 app/views/catalog/_constraints_element.html.erb
blacklight-4.5.0 app/views/catalog/_constraints_element.html.erb
blacklight-4.5.0.rc1 app/views/catalog/_constraints_element.html.erb
blacklight-4.4.2 app/views/catalog/_constraints_element.html.erb
blacklight-4.4.1 app/views/catalog/_constraints_element.html.erb
blacklight-4.4.0 app/views/catalog/_constraints_element.html.erb
blacklight-4.3.0 app/views/catalog/_constraints_element.html.erb
blacklight-4.2.2 app/views/catalog/_constraints_element.html.erb
blacklight-4.2.1 app/views/catalog/_constraints_element.html.erb
blacklight-4.2.0 app/views/catalog/_constraints_element.html.erb
blacklight-4.1.0 app/views/catalog/_constraints_element.html.erb
blacklight-4.0.1 app/views/catalog/_constraints_element.html.erb