From eea1db4c4af05ffe075e6bb8e77d6d9d57b04ff1 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 25 May 2023 14:37:41 +0200 Subject: [PATCH] Hide OFN logo and use the customized logo if activated --- app/views/shared/menu/_offcanvas_menu.html.haml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/shared/menu/_offcanvas_menu.html.haml b/app/views/shared/menu/_offcanvas_menu.html.haml index 1bb67b8f77..3013528844 100644 --- a/app/views/shared/menu/_offcanvas_menu.html.haml +++ b/app/views/shared/menu/_offcanvas_menu.html.haml @@ -1,9 +1,12 @@ %aside.left-off-canvas-menu.show-for-medium-down{ ng: { controller: "OffcanvasCtrl" } } %ul.off-canvas-list - = cache_with_locale ContentConfig.cache_key do + = cache_with_locale [ContentConfig.cache_key, @white_label_logo] do %li.ofn-logo %a{href: main_app.root_path} - %img{src: ContentConfig.url_for(:logo_mobile), srcset: ContentConfig.url_for(:logo_mobile_svg), width: "75", height: "26"} + - if @white_label_logo&.variable? + = image_tag @white_label_distributor.white_label_logo_url(:mobile) + - else + %img{src: ContentConfig.url_for(:logo_mobile), srcset: ContentConfig.url_for(:logo_mobile_svg), width: "75", height: "26"} - [*1..7].each do |menu_number| - menu_name = "menu_#{menu_number}" - if ContentConfig[menu_name].present?