diff --git a/.env.example b/.env.example index 44748b4..93084dc 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,6 @@ +# Application version shown on login and profile pages +APP_VERSION=1.0.0 + # Secret key for signing session cookies — use a long random string in production SECRET_KEY=change-me-to-a-long-random-string diff --git a/app/templates/auth/login.html b/app/templates/auth/login.html index 361b582..ffd80a1 100644 --- a/app/templates/auth/login.html +++ b/app/templates/auth/login.html @@ -29,5 +29,6 @@ +

v{{ app_version }}

diff --git a/app/templates/profile/profile.html b/app/templates/profile/profile.html index 6024f66..772bb4d 100644 --- a/app/templates/profile/profile.html +++ b/app/templates/profile/profile.html @@ -76,6 +76,14 @@ {% include "partials/crop_modal.html" %} +
+

About

+
+ Skins & Pins + v{{ app_version }} +
+
+
Log out
diff --git a/app/templates_config.py b/app/templates_config.py index 64d8ae0..57554af 100644 --- a/app/templates_config.py +++ b/app/templates_config.py @@ -3,3 +3,4 @@ from fastapi.templating import Jinja2Templates templates = Jinja2Templates(directory="app/templates") templates.env.globals["admin_email"] = os.getenv("ADMIN_EMAIL", "") +templates.env.globals["app_version"] = os.getenv("APP_VERSION", "1.0.0")