faceted_search 3.5.2 → 3.5.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '04106970c4095477714e7d1a968b62ed26b5d0bd155995c1bb90570fab2e7534'
|
4
|
+
data.tar.gz: 23d62e43c40553664cc941f8e5ec80090c5a7e5a39be72e5c06368427ff1c1cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfd6cd87a2b7ba8be6ed284337169a9ea487aba35d5f0ffdbf3b0d662c78b0d05aa611b11e75ee9171030929a63fa4fd1a60e24f7e044ee25c8fb37b5bf2bff1
|
7
|
+
data.tar.gz: a32ca6d1a6c37bd1b84b246b824415bcae8ec712878606f77f115de4a55cf40341afca91273ba2b5c4e1c269114688a1d61e300b85853017c0ef31030012c1f8
|
@@ -27,11 +27,11 @@ module FacetedSearch
|
|
27
27
|
else
|
28
28
|
p = path
|
29
29
|
list.each do |current_facet|
|
30
|
+
next if current_facet.path_pattern?
|
30
31
|
p += current_facet == facet ? current_facet.path_for(value)
|
31
32
|
: current_facet.path
|
32
33
|
end
|
33
34
|
end
|
34
|
-
p.delete_suffix!(path) if p.end_with?(path)
|
35
35
|
p
|
36
36
|
end
|
37
37
|
|
@@ -6,7 +6,10 @@ reset ||= 'Reset'
|
|
6
6
|
<% if facets.has_params? %>
|
7
7
|
<ul class="faceted__facets-selected list-inline">
|
8
8
|
<% facets.list.each do |facet| %>
|
9
|
-
<%
|
9
|
+
<%
|
10
|
+
next if facet.path_pattern?
|
11
|
+
partial = "#{facet.kind.underscore}/selected"
|
12
|
+
%>
|
10
13
|
<%= render partial, facet: facet %>
|
11
14
|
<% end %>
|
12
15
|
</ul>
|