Fixed issue #1913 with expand/collapse of list of producers of a shop

This commit is contained in:
luisramos0
2018-05-23 17:32:38 +01:00
parent d218a51d96
commit d821664ee3

View File

@@ -33,17 +33,18 @@
%enterprise-modal
%i.ofn-i_036-producers
%span{"ng-bind" => "::enterprise.name"}
%li{"ng-repeat" => "enterprise in hub.producers.slice(7,hub.producers.length)", "class" => "additional-producer"}
%enterprise-modal
%i.ofn-i_036-producers
%span{"ng-bind" => "::enterprise.name"}
%li{"data-is-link" => "true", "class" => "more-producers-link", "ng-show" => "::hub.producers.length>7"}
%a{"ng-click" => "toggleMoreProducers=!toggleMoreProducers"}
%a{"ng-click" => "toggleMoreProducers=!toggleMoreProducers; $event.stopPropagation()"}
.more
+
%span{"ng-bind" => "::hub.producers.length-7"}
= t :label_more
.less
= t :label_less
%li{"ng-repeat" => "enterprise in hub.producers.slice(7,hub.producers.length)", "class" => "additional-producer"}
%enterprise-modal
%i.ofn-i_036-producers
%span{"ng-bind" => "::enterprise.name"}
%div.show-for-medium-up{"ng-if" => "::hub.producers.length==0"}