diff --git a/community_backup/community_backup/context_processors.py b/community_backup/community_backup/context_processors.py new file mode 100644 index 0000000..a6321ea --- /dev/null +++ b/community_backup/community_backup/context_processors.py @@ -0,0 +1,7 @@ +from django.conf import settings + + +def release_version(_request): + return { + "RELEASE_VERSION": settings.RELEASE_VERSION, + } diff --git a/community_backup/community_backup/settings.py b/community_backup/community_backup/settings.py index b8c735f..2e420e3 100644 --- a/community_backup/community_backup/settings.py +++ b/community_backup/community_backup/settings.py @@ -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" diff --git a/community_backup/webui/templates/base.html b/community_backup/webui/templates/base.html index f8c06d9..f030569 100644 --- a/community_backup/webui/templates/base.html +++ b/community_backup/webui/templates/base.html @@ -60,6 +60,13 @@ +
+ +
diff --git a/pyproject.toml b/pyproject.toml index 412eb3e..8a678d3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"