BTHLABS-49: WIP
This commit is contained in:
parent
aba33b2167
commit
b81f45f0a4
|
@ -3,6 +3,7 @@ from __future__ import annotations
|
|||
|
||||
from django.http import HttpRequest
|
||||
|
||||
from hotpocket_backend._meta import version as backend_version
|
||||
from hotpocket_backend.apps.core.conf import settings
|
||||
from hotpocket_backend.apps.core.context import get_request_id
|
||||
|
||||
|
@ -39,3 +40,9 @@ def debug(request: HttpRequest) -> dict:
|
|||
return {
|
||||
'DEBUG': settings.DEBUG,
|
||||
}
|
||||
|
||||
|
||||
def version(request: HttpRequest) -> dict:
|
||||
return {
|
||||
'VERSION': backend_version,
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<p class="mb-0 mt-2 text-center text-muted ui-uname">
|
||||
<span>
|
||||
<a href="https://hotpocket.app/" target="_blank" rel="noopener noreferer">{{ SITE_TITLE }}</a>
|
||||
<a href="https://hotpocket.app/" target="_blank" rel="noopener noreferer">{{ SITE_TITLE }}</a> v{{ VERSION }}
|
||||
(<code>{{ IMAGE_ID }}</code>)
|
||||
</span>
|
||||
<br>
|
||||
|
|
|
@ -66,6 +66,7 @@ TEMPLATES = [
|
|||
'hotpocket_backend.apps.ui.context_processors.request_id',
|
||||
'hotpocket_backend.apps.ui.context_processors.htmx',
|
||||
'hotpocket_backend.apps.ui.context_processors.debug',
|
||||
'hotpocket_backend.apps.ui.context_processors.version',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user