From 15ff03806a0bcd0155625167cb6e50585da47621 Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Tue, 28 May 2024 14:42:45 -0400 Subject: [PATCH] properly format menu content with configuration parameters --- hyperglass/models/config/params.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hyperglass/models/config/params.py b/hyperglass/models/config/params.py index 4348ff6..1e35ba2 100644 --- a/hyperglass/models/config/params.py +++ b/hyperglass/models/config/params.py @@ -128,6 +128,13 @@ class Params(ParamsPublic, HyperglassModel): primary_asn=info.data.get("primary_asn", "65000") ) link.url = HttpUrl(url) + + for menu in web.menus: + menu.content = menu.content.format( + site_title=info.data.get("site_title", "hyperglass"), + org_name=info.data.get("org_name", "hyperglass"), + version=__version__, + ) return web def common_plugins(self) -> t.Tuple[Path, ...]: