publish project version

This commit is contained in:
2023-01-08 10:28:51 +00:00
parent cd28dd177d
commit 274257ff58
4 changed files with 19 additions and 1 deletions

View File

View File

@@ -0,0 +1,10 @@
from django import template
from fet2020 import __version__, build
register = template.Library()
@register.simple_tag
def version():
return f"Version {__version__} Build {build}"

View File

@@ -0,0 +1,7 @@
from django.utils.version import get_version
VERSION = (1, 0, 0, "final", 0)
BUILD = 0
__version__ = get_version(VERSION)
build = BUILD

View File

@@ -1,5 +1,6 @@
{% load flatpages %}
{% load static %}
{% load version %}
<!DOCTYPE html>
<html lang="de">
@@ -211,7 +212,7 @@
</div>
{% endif %}
<hr class="legal-divider">
<p class="copyright">© {% now 'Y' %} FET - Alle Rechte vorbehalten.</p>
<p class="copyright">© {% now 'Y' %} FET - Alle Rechte vorbehalten. {% version %}.</p>
</footer>
<div class="super-duper-awesome-signature" x-data="counter">
<span x-ref="countFour">Handcrafted </span>