forked from mirrors/thatmattlove-hyperglass
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")
|
primary_asn=info.data.get("primary_asn", "65000")
|
||||||
)
|
)
|
||||||
link.url = HttpUrl(url)
|
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
|
return web
|
||||||
|
|
||||||
def common_plugins(self) -> t.Tuple[Path, ...]:
|
def common_plugins(self) -> t.Tuple[Path, ...]:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue