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,7 +20,6 @@ | ||
| 20 | <span class="search-enterprise-region-label"><%= _("City") %></span> | 20 | <span class="search-enterprise-region-label"><%= _("City") %></span> |
| 21 | <% if profile.region %> | 21 | <% if profile.region %> |
| 22 | <span class="search-enterprise-region-name"><%= city_with_state(profile.region) %></span> | 22 | <span class="search-enterprise-region-name"><%= city_with_state(profile.region) %></span> |
| 23 | - <% else %> | ||
| 24 | <% end %> | 23 | <% end %> |
| 25 | </div> | 24 | </div> |
| 26 | <% if !profile.description.blank? %> | 25 | <% if !profile.description.blank? %> |
| @@ -29,10 +28,14 @@ | @@ -29,10 +28,14 @@ | ||
| 29 | 28 | ||
| 30 | <div class="search-enterprise-categorization"> | 29 | <div class="search-enterprise-categorization"> |
| 31 | <% profile.top_level_categorization.each do |parent, children| %> | 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 | <% end %> | 39 | <% end %> |
| 37 | </div> | 40 | </div> |
| 38 | </div> | 41 | </div> |