added version number to the footer
This commit is contained in:
parent
47a1dbc4cb
commit
79bc9a92be
4 changed files with 18 additions and 1 deletions
7
community_backup/community_backup/context_processors.py
Normal file
7
community_backup/community_backup/context_processors.py
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
|
def release_version(_request):
|
||||||
|
return {
|
||||||
|
"RELEASE_VERSION": settings.RELEASE_VERSION,
|
||||||
|
}
|
||||||
|
|
@ -66,6 +66,7 @@ TEMPLATES = [
|
||||||
"django.template.context_processors.request",
|
"django.template.context_processors.request",
|
||||||
"django.contrib.auth.context_processors.auth",
|
"django.contrib.auth.context_processors.auth",
|
||||||
"django.contrib.messages.context_processors.messages",
|
"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"
|
STATIC_ROOT = BASE_DIR.parent.parent / "static"
|
||||||
|
|
||||||
|
RELEASE_VERSION = "0.5"
|
||||||
|
|
||||||
# Import settings from configuration.py
|
# Import settings from configuration.py
|
||||||
try:
|
try:
|
||||||
config_module = "community_backup.configuration"
|
config_module = "community_backup.configuration"
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,13 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "community_backup"
|
name = "community_backup"
|
||||||
version = "0.1.0"
|
version = "0.5.0"
|
||||||
description = "Add your description here"
|
description = "Add your description here"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue