diff --git a/vtaskr/base/config.py b/vtaskr/base/config.py index e978459f..dc8a0c1f 100644 --- a/vtaskr/base/config.py +++ b/vtaskr/base/config.py @@ -3,6 +3,7 @@ from vtaskr.libs.secutity.utils import file_to_base64 APP_NAME = "vtaskr" +VERSION = "1.1.0" # Validators config PASSWORD_MIN_LENGTH = 10 diff --git a/vtaskr/base/hmi/flask/routes.py b/vtaskr/base/hmi/flask/routes.py index 051280d0..bd3867f2 100644 --- a/vtaskr/base/hmi/flask/routes.py +++ b/vtaskr/base/hmi/flask/routes.py @@ -2,7 +2,7 @@ from flask import Blueprint, jsonify, render_template -from vtaskr.base.config import AVAILABLE_LANGUAGES +from vtaskr.base.config import AVAILABLE_LANGUAGES, VERSION from vtaskr.libs.flask.utils import ResponseAPI from vtaskr.libs.openapi.base import openapi @@ -17,7 +17,7 @@ @base_bp.route("/", methods=["GET"]) def hello(): """Just a logo displayed to curious users""" - return render_template("home.html") + return render_template("home.html", version=VERSION) @base_bp.route("/languages", methods=["GET"]) diff --git a/vtaskr/base/hmi/flask/templates/home.html b/vtaskr/base/hmi/flask/templates/home.html index b8da8e52..79f69e97 100644 --- a/vtaskr/base/hmi/flask/templates/home.html +++ b/vtaskr/base/hmi/flask/templates/home.html @@ -14,6 +14,7 @@