publish project version
This commit is contained in:
0
fet2020/core/templatetags/__init__.py
Normal file
0
fet2020/core/templatetags/__init__.py
Normal file
10
fet2020/core/templatetags/version.py
Normal file
10
fet2020/core/templatetags/version.py
Normal 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}"
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{% load flatpages %}
|
{% load flatpages %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
{% load version %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
@@ -211,7 +212,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<hr class="legal-divider">
|
<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>
|
</footer>
|
||||||
<div class="super-duper-awesome-signature" x-data="counter">
|
<div class="super-duper-awesome-signature" x-data="counter">
|
||||||
<span x-ref="countFour">Handcrafted </span>
|
<span x-ref="countFour">Handcrafted </span>
|
||||||
|
|||||||
Reference in New Issue
Block a user