From d821664ee3dffab88e5c9c9a7bc23223eee9d3d3 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 23 May 2018 17:32:38 +0100 Subject: [PATCH] Fixed issue #1913 with expand/collapse of list of producers of a shop --- app/views/shops/_fat.html.haml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/shops/_fat.html.haml b/app/views/shops/_fat.html.haml index beb882c4d4..66752acefd 100644 --- a/app/views/shops/_fat.html.haml +++ b/app/views/shops/_fat.html.haml @@ -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"}