Sha256: f93be9d3abec2c9e93952035a42137c4048cada34414cf44dd9ec599a5dc7a1b

Contents?: true

Size: 1.38 KB

Versions: 13

Compression:

Stored size: 1.38 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',
          :alt=>'remove'
				) %>
      <%- end -%>
</span>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
blacklight-3.8.2 app/views/catalog/_constraints_element.html.erb
blacklight-4.0.0 app/views/catalog/_constraints_element.html.erb
blacklight-4.0.0.rc2 app/views/catalog/_constraints_element.html.erb
blacklight-4.0.0.rc1 app/views/catalog/_constraints_element.html.erb
blacklight-4.0.0.pre7 app/views/catalog/_constraints_element.html.erb
blacklight-4.0.0.pre6 app/views/catalog/_constraints_element.html.erb
blacklight-3.8.1 app/views/catalog/_constraints_element.html.erb
blacklight-3.8.0 app/views/catalog/_constraints_element.html.erb
blacklight-3.7.2 app/views/catalog/_constraints_element.html.erb
blacklight-3.7.1 app/views/catalog/_constraints_element.html.erb
blacklight-3.7.0 app/views/catalog/_constraints_element.html.erb
blacklight-3.6.1.1 app/views/catalog/_constraints_element.html.erb
blacklight-3.6.0 app/views/catalog/_constraints_element.html.erb