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