v1.4.0: fix #43, #31, #29, #49, #33 + shared templating

This commit is contained in:
2026-05-20 20:08:25 +03:00
parent ca4d00c895
commit 64991f0228
63 changed files with 5005 additions and 45 deletions
+10
View File
@@ -0,0 +1,10 @@
from fastapi.templating import Jinja2Templates
from app.config import get_settings
from app.version import get_app_version
settings = get_settings()
templates = Jinja2Templates(directory="app/templates")
templates.env.globals["SITE_NAME"] = "AegisOne Engineering"
templates.env.globals["app_version"] = get_app_version()
templates.env.globals["PORTAINER_URL"] = settings.PORTAINER_URL