changes recommended by evilham
parent
ec4f4587d4
commit
0b03efc73e
|
@ -85,8 +85,7 @@ apps_internal:
|
||||||
icon: fa fa-file-image-o
|
icon: fa fa-file-image-o
|
||||||
name: Fotos
|
name: Fotos
|
||||||
shortname: photos
|
shortname: photos
|
||||||
- subdomain: none
|
- href: https://dd.digitalitzacio-democratica.xnet-x.net/manual/
|
||||||
href: https://dd.digitalitzacio-democratica.xnet-x.net/manual/
|
|
||||||
icon: fa fa-book
|
icon: fa fa-book
|
||||||
name: Manual
|
name: Manual
|
||||||
shortname: manual
|
shortname: manual
|
||||||
|
|
|
@ -78,7 +78,7 @@ class Menu:
|
||||||
|
|
||||||
apps_internal = []
|
apps_internal = []
|
||||||
for app in system["apps_internal"]:
|
for app in system["apps_internal"]:
|
||||||
if app["subdomain"] != 'none':
|
if app["href"].startswith('/'):
|
||||||
app["href"] = (
|
app["href"] = (
|
||||||
"https://"
|
"https://"
|
||||||
+ app["subdomain"]
|
+ app["subdomain"]
|
||||||
|
@ -86,7 +86,7 @@ class Menu:
|
||||||
+ application.config["DOMAIN"]
|
+ application.config["DOMAIN"]
|
||||||
+ app["href"]
|
+ app["href"]
|
||||||
)
|
)
|
||||||
del app["subdomain"]
|
del app["subdomain"]
|
||||||
apps_internal.append(app)
|
apps_internal.append(app)
|
||||||
|
|
||||||
with open(r"menu/custom.yaml") as yml:
|
with open(r"menu/custom.yaml") as yml:
|
||||||
|
|
Loading…
Reference in New Issue