Sha256: 7df35f0024344c1ff8e34b727ca3e33b295667fb1dfda8bed97785f0d03ab866

Contents?: true

Size: 1.29 KB

Versions: 16

Compression:

Stored size: 1.29 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?
                  "Remove constraint #{options[:escape_value] ? h(value) : value}"
                else
                  "Remove constraint #{options[:escape_value] ? h(value) : value}: #{options[:escape_value] ? h(value) : value}"
                end              
        %>                
        <%= link_to(accessible_remove_label,
					options[:remove],
					:class=>'btnRemove imgReplace',
          :alt=>'remove'
				) %>
      <%- end -%>
</span>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
blacklight-3.2.2 app/views/catalog/_constraints_element.html.erb
blacklight-3.2.1 app/views/catalog/_constraints_element.html.erb
blacklight-3.2.0 app/views/catalog/_constraints_element.html.erb
blacklight-3.2.0pre2 app/views/catalog/_constraints_element.html.erb
blacklight-3.2.0pre1 app/views/catalog/_constraints_element.html.erb
blacklight-3.1.2 app/views/catalog/_constraints_element.html.erb
blacklight-3.1.1 app/views/catalog/_constraints_element.html.erb
blacklight-3.1.0 app/views/catalog/_constraints_element.html.erb
blacklight-3.0.0 app/views/catalog/_constraints_element.html.erb
blacklight-3.0.0pre8 app/views/catalog/_constraints_element.html.erb
blacklight-3.0.0pre7 app/views/catalog/_constraints_element.html.erb
blacklight-3.0.0pre6 app/views/catalog/_constraints_element.html.erb
blacklight-3.0.0pre4 app/views/catalog/_constraints_element.html.erb
blacklight-3.0.0pre3 app/views/catalog/_constraints_element.html.erb
blacklight-3.0pre2 app/views/catalog/_constraints_element.html.erb
blacklight-3.0pre1 app/views/catalog/_constraints_element.html.erb