From 60edb4363e07f928d99587fa17ba485f31a721c3 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 12 May 2023 09:30:37 +0200 Subject: [PATCH] Fix bad indentation (and hierarchy) `%section` must be siblings each others introduced by https://github.com/openfoodfoundation/openfoodnetwork/pull/10772 --- app/views/shared/menu/_mobile_menu.html.haml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/shared/menu/_mobile_menu.html.haml b/app/views/shared/menu/_mobile_menu.html.haml index 7288b2a78e..d714efbfcf 100644 --- a/app/views/shared/menu/_mobile_menu.html.haml +++ b/app/views/shared/menu/_mobile_menu.html.haml @@ -12,15 +12,15 @@ - else %img{src: ContentConfig.url_for(:logo_mobile), srcset: ContentConfig.url_for(:logo_mobile_svg), width: "75", height: "26"} - %section.right{"ng-cloak" => true} - %span.cart-span{"ng-class" => "{ dirty: Cart.dirty || Cart.empty(), 'pure-dirty': Cart.dirty }"} - %a.icon{ng: {click: 'toggleCartSidebar()'}} + %section.right{"ng-cloak" => true} + %span.cart-span{"ng-class" => "{ dirty: Cart.dirty || Cart.empty(), 'pure-dirty': Cart.dirty }"} + %a.icon{ng: {click: 'toggleCartSidebar()'}} + %span + = t '.cart' + %span.count + = image_pack_tag "menu/icn-cart.svg" %span - = t '.cart' - %span.count - = image_pack_tag "menu/icn-cart.svg" - %span - {{ Cart.total_item_count() }} + {{ Cart.total_item_count() }} %a{href: main_app.shop_path} {{ CurrentHub.hub.name }}