Skip to content

Commit

Permalink
fix: show footer version everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
l4rm4nd committed Sep 18, 2024
1 parent 7faba5f commit 71ba60b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion myapp/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
<!-- ======= Footer ======= -->
<footer id="footer" class="footer">
<div class="copyright">
<h5>VoucherVault{% if container_version %} {{ container_version }}{% endif %}</h5>
<h5>VoucherVault {{ "VERSION"|env }}</h5>
&copy; Copyright <strong><span>NiceAdmin</span></strong>. All Rights Reserved
</div>
<div class="credits">
Expand Down
2 changes: 2 additions & 0 deletions myapp/templatetags/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
def env(key):
if key == "OIDC_ENABLED":
return settings.OIDC_ENABLED
if key == "VERSION":
return settings.VERSION

@register.filter()
def comma_to_dot(value):
Expand Down

0 comments on commit 71ba60b

Please sign in to comment.