Skip to content

Commit 71ba60b

Browse files
committed
fix: show footer version everywhere
1 parent 7faba5f commit 71ba60b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

myapp/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
<!-- ======= Footer ======= -->
202202
<footer id="footer" class="footer">
203203
<div class="copyright">
204-
<h5>VoucherVault{% if container_version %} {{ container_version }}{% endif %}</h5>
204+
<h5>VoucherVault {{ "VERSION"|env }}</h5>
205205
&copy; Copyright <strong><span>NiceAdmin</span></strong>. All Rights Reserved
206206
</div>
207207
<div class="credits">

myapp/templatetags/extras.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
def env(key):
99
if key == "OIDC_ENABLED":
1010
return settings.OIDC_ENABLED
11+
if key == "VERSION":
12+
return settings.VERSION
1113

1214
@register.filter()
1315
def comma_to_dot(value):

0 commit comments

Comments
 (0)