added version number to the footer

This commit is contained in:
Johannes Erwerle 2026-04-19 08:34:57 +02:00
parent 47a1dbc4cb
commit 79bc9a92be
4 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,7 @@
from django.conf import settings
def release_version(_request):
return {
"RELEASE_VERSION": settings.RELEASE_VERSION,
}

View file

@ -66,6 +66,7 @@ TEMPLATES = [
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"community_backup.context_processors.release_version",
],
},
},
@ -114,6 +115,8 @@ TASKS = {"default": {"BACKEND": "django.tasks.backends.immediate.ImmediateBacken
STATIC_ROOT = BASE_DIR.parent.parent / "static"
RELEASE_VERSION = "0.5"
# Import settings from configuration.py
try:
config_module = "community_backup.configuration"

View file

@ -60,6 +60,13 @@
</li>
</ul>
</div>
<div class="col-3">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link disabled">Community Backup v{{ RELEASE_VERSION }}</a>
</li>
</ul>
</div>
</div>
</div>
</footer>

View file

@ -1,6 +1,6 @@
[project]
name = "community_backup"
version = "0.1.0"
version = "0.5.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"