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 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>
|
||||
|
||||
Reference in New Issue
Block a user