From a28b3000ad1a8eb1632139618b65d92886c3b06d Mon Sep 17 00:00:00 2001 From: jacquesfize Date: Fri, 22 Nov 2024 14:00:42 +0100 Subject: [PATCH] feat(ui): show version of UsersHub in the header nav --- app/app.py | 1 + app/templates/head-appli.html | 100 ++++++++++++++++++++-------------- 2 files changed, 61 insertions(+), 40 deletions(-) diff --git a/app/app.py b/app/app.py index d0c172d..353ef55 100644 --- a/app/app.py +++ b/app/app.py @@ -61,6 +61,7 @@ def create_app(): os.environ["SCRIPT_NAME"] = app.config["APPLICATION_ROOT"] app.config["URL_REDIRECT"] = "{}/{}".format(app.config["URL_APPLICATION"], "login") app.secret_key = app.config["SECRET_KEY"] + app.config["VERSION"] = open("VERSION").read().strip() app.wsgi_app = ProxyFix(app.wsgi_app, x_host=1) db.init_app(app) app.config["DB"] = db diff --git a/app/templates/head-appli.html b/app/templates/head-appli.html index 1375cf5..7c26a3a 100644 --- a/app/templates/head-appli.html +++ b/app/templates/head-appli.html @@ -1,41 +1,61 @@ -