Commit 7b85b607893d3a6386809536275a0ed98f1ed161
1 parent
53e851de
Exists in
master
and in
29 other branches
Removed territory facet from Enterprise search view
Showing
1 changed file
with
8 additions
and
5 deletions
Show diff stats
app/views/search/_profile.rhtml
... | ... | @@ -20,7 +20,6 @@ |
20 | 20 | <span class="search-enterprise-region-label"><%= _("City") %></span> |
21 | 21 | <% if profile.region %> |
22 | 22 | <span class="search-enterprise-region-name"><%= city_with_state(profile.region) %></span> |
23 | - <% else %> | |
24 | 23 | <% end %> |
25 | 24 | </div> |
26 | 25 | <% if !profile.description.blank? %> |
... | ... | @@ -29,10 +28,14 @@ |
29 | 28 | |
30 | 29 | <div class="search-enterprise-categorization"> |
31 | 30 | <% profile.top_level_categorization.each do |parent, children| %> |
32 | - <div class="search-enterprise-category-<%=parent.id%> search-enterprise-category"> | |
33 | - <span class="search-enterprise-categorization-parent"><%= parent.name %></span> | |
34 | - <span class="search-enterprise-categorization-children"><%= children.collect(&:name).join(', ') %></span> | |
35 | - </div> | |
31 | + <% if parent.name != "Territórios" %> | |
32 | + <div class="search-enterprise-category-<%=parent.id%> search-enterprise-category"> | |
33 | + <span class="search-enterprise-categorization-parent"><%= parent.name %></span> | |
34 | + <span class="search-enterprise-categorization-children"> | |
35 | + <%= children.collect(&:name).join(', ') %> | |
36 | + </span> | |
37 | + </div> | |
38 | + <% end %> | |
36 | 39 | <% end %> |
37 | 40 | </div> |
38 | 41 | </div> | ... | ... |