diff --git a/app/views/search/_product_categories_menu.rhtml b/app/views/search/_product_categories_menu.rhtml index f195cfe..3f7c0b5 100644 --- a/app/views/search/_product_categories_menu.rhtml +++ b/app/views/search/_product_categories_menu.rhtml @@ -1,19 +1,19 @@ <% if product_categories_menu %> -
- + <% end %> + + <% end %> + +
<% end %> diff --git a/app/views/search/products.rhtml b/app/views/search/products.rhtml index 938fded..623c188 100644 --- a/app/views/search/products.rhtml +++ b/app/views/search/products.rhtml @@ -10,6 +10,12 @@

<%=h (_('Within %s km from %s') % [@radius, @region.name]) %>

<% end %> +<% if @product_category %> +

+ <%= @product_category.hierarchy.map {|cat| ((cat == @product_category) ? cat.name : link_to((cat.name), params.merge({:product_category => cat.id}))) }.join(' → ') %> +

+<% end %> + <%= render :partial => 'search_form', :locals => { :form_title => _("Refine your search"), :simple_search => true } %> <%= render :partial => 'product_categories_menu', :object => @categories_menu %> -- libgit2 0.21.2