<%# This view is overridden to change the alt attribute to be a title in the link_to below in order to conform to the HTML5 validity standard. This should ultimately be fixed in Blacklight. -%> <%- # 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) -%> "> <%- unless label.blank? -%> <%= options[:escape_label] ? h(label) : label %> <%- end -%> <%- unless value.blank? -%> <%= options[:escape_value] ? h(value) : value %> <%- 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', :title=>'remove' ) %> <%- end -%>