diff --git a/site/app.py b/site/app.py index 536f840..adcb57d 100644 --- a/site/app.py +++ b/site/app.py @@ -5,9 +5,12 @@ from flask import Flask from routes.main import bp as main_bp from routes.api import bp as api_bp +VERSION = "1.0.1" + app = Flask(__name__, template_folder="templates", static_folder="static") app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc") app.config["NUBES_API_TOKEN"] = os.getenv("NUBES_API_TOKEN", "") +app.config["VERSION"] = VERSION app.register_blueprint(main_bp) app.register_blueprint(api_bp) diff --git a/site/templates/index.html b/site/templates/index.html index b621811..3ea5528 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -13,7 +13,11 @@ -
+
+ Nubes + v{{ config.VERSION if config else '?' }} + + {% if has_user_token %}