From ec4f4587d49b517789be87ba6b9ceabca52eae56 Mon Sep 17 00:00:00 2001 From: elena Date: Mon, 14 Nov 2022 15:07:40 +0000 Subject: [PATCH] new megamenu link: DD manual --- custom.sample/menu/system.yaml | 5 +++++ dd-sso/docker/api/src/api/lib/menu.py | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/custom.sample/menu/system.yaml b/custom.sample/menu/system.yaml index 17f5137..53c7be7 100644 --- a/custom.sample/menu/system.yaml +++ b/custom.sample/menu/system.yaml @@ -85,6 +85,11 @@ apps_internal: icon: fa fa-file-image-o name: Fotos shortname: photos +- subdomain: none + href: https://dd.digitalitzacio-democratica.xnet-x.net/manual/ + icon: fa fa-book + name: Manual + shortname: manual user: account: /auth/realms/master/account avatar: /auth/realms/master/avatar-provider diff --git a/dd-sso/docker/api/src/api/lib/menu.py b/dd-sso/docker/api/src/api/lib/menu.py index b975832..b376c51 100644 --- a/dd-sso/docker/api/src/api/lib/menu.py +++ b/dd-sso/docker/api/src/api/lib/menu.py @@ -78,13 +78,14 @@ class Menu: apps_internal = [] for app in system["apps_internal"]: - app["href"] = ( - "https://" - + app["subdomain"] - + "." - + application.config["DOMAIN"] - + app["href"] - ) + if app["subdomain"] != 'none': + app["href"] = ( + "https://" + + app["subdomain"] + + "." + + application.config["DOMAIN"] + + app["href"] + ) del app["subdomain"] apps_internal.append(app)