mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-05-15 20:08:01 +00:00
properly format menu content with configuration parameters
This commit is contained in:
parent
f52fdbd215
commit
15ff03806a
1 changed files with 7 additions and 0 deletions
|
|
@ -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, ...]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue