diff --git a/app/views/shop/products/_applied_filters_feedback.haml b/app/views/shop/products/_applied_filters_feedback.haml new file mode 100644 index 0000000000..b92ff8f088 --- /dev/null +++ b/app/views/shop/products/_applied_filters_feedback.haml @@ -0,0 +1,9 @@ +%span{ "ng-show" => "query && ( appliedPropertiesList() || appliedTaxonsList() )" } + = t :products_filters_in + +%span.applied-properties{'ng-bind-html' => 'appliedPropertiesList()'} + +%span{ "ng-show" => "appliedPropertiesList() && appliedTaxonsList()" } + = t :products_or + +%span.applied-taxons{'ng-bind-html' => 'appliedTaxonsList()'} diff --git a/app/views/shop/products/_search_feedback.haml b/app/views/shop/products/_search_feedback.haml index 2f4c0548a3..18f7d26c91 100644 --- a/app/views/shop/products/_search_feedback.haml +++ b/app/views/shop/products/_search_feedback.haml @@ -7,16 +7,7 @@ %span{ ng: { hide: "!query"} } %span.applied-search {{ query }} - - %span{ "ng-show" => "query && ( appliedPropertiesList() || appliedTaxonsList() )" } - = t :products_filters_in - - %span.applied-properties{'ng-bind-html' => 'appliedPropertiesList()'} - - %span{ "ng-show" => "appliedPropertiesList() && appliedTaxonsList()" } - = t :products_or - - %span.applied-taxons{'ng-bind-html' => 'appliedTaxonsList()'} + = render partial: 'shop/products/applied_filters_feedback' %a.clear-all.right{"ng-click" => "clearAll()"} = t :products_clear