|
1 | | -<%- # local params: |
2 | | - # label |
| 1 | +<% # local params: |
| 2 | + # label |
3 | 3 | # value |
4 | 4 | # options => |
5 | 5 | # :remove => url for a remove constraint link |
6 | 6 | # :classes => array of classes to add to container span |
7 | 7 | options ||= {} |
8 | | --%> |
| 8 | +%> |
9 | 9 |
|
10 | 10 | <span class="btn-group appliedFilter constraint <%= options[:classes].join(" ") if options[:classes] %>"> |
11 | | -<a href="#" class="constraint-value btn btn-sm btn-default btn-disabled"> |
12 | | - <%- unless label.blank? -%> |
13 | | - <span class="filterName"><%= label %></span> |
14 | | - <%- end -%> |
15 | | - <%- unless value.blank? -%> |
16 | | - <span class="filterValue"><%= value %></span> |
17 | | - <%- end -%> |
18 | | - </a> |
| 11 | + <span class="constraint-value btn btn-sm btn-default btn-disabled"> |
| 12 | + <% unless label.blank? %> |
| 13 | + <span class="filterName"><%= label %></span> |
| 14 | + <% end %> |
| 15 | + <% unless value.blank? %> |
| 16 | + <span class="filterValue"><%= value %></span> |
| 17 | + <% end %> |
| 18 | + </span> |
| 19 | + <% unless options[:remove].blank? %> |
| 20 | + <% accessible_remove_label = content_tag :span, class: 'sr-only' do |
| 21 | + if label.blank? |
| 22 | + t('blacklight.search.filters.remove.value', value: value) |
| 23 | + else |
| 24 | + t('blacklight.search.filters.remove.label_value', label: label, value: value) |
| 25 | + end |
| 26 | + end |
| 27 | + %> |
19 | 28 |
|
20 | | - <%- unless options[:remove].blank? -%> |
21 | | - <% accessible_remove_label = content_tag :span, :class => 'sr-only' do |
22 | | - if label.blank? |
23 | | - t('blacklight.search.filters.remove.value', :value => value) |
24 | | - else |
25 | | - t('blacklight.search.filters.remove.label_value', :label => label, :value => value) |
26 | | - end |
27 | | - end |
28 | | - %> |
29 | | - |
30 | | - <%= link_to(content_tag(:span, '', :class => 'glyphicon glyphicon-remove') + accessible_remove_label, |
31 | | - options[:remove], :class => 'btn btn-default btn-sm remove dropdown-toggle' |
32 | | - ) %> |
33 | | - <%- end -%> |
| 29 | + <%= link_to(content_tag(:span, '', class: 'glyphicon glyphicon-remove') + accessible_remove_label, |
| 30 | + options[:remove], class: 'btn btn-default btn-sm remove dropdown-toggle' |
| 31 | + ) %> |
| 32 | + <%- end -%> |
34 | 33 | </span> |
0 commit comments