Commit 65e8dc7c authored by Christophe Benz's avatar Christophe Benz
Browse files

Display version number in footer

parent ddf0c0a2
## master
Non-breaking changes:
- display version number in footer
## 0.2.0
New features for users:
......@@ -4,6 +4,8 @@ from pathlib import Path
from setuptools import setup
from validata_ui.version import VERSION
# Gets the long description from the file
readme_filepath = Path(__file__).parent / ''
with'rt', encoding='utf-8') as fd_in:
......@@ -12,7 +14,7 @@ with'rt', encoding='utf-8') as fd_in:
description='Validata Web UI',
......@@ -14,6 +14,7 @@ import tableschema
import opendataschema
from . import config
from .version import VERSION
log = logging.getLogger(__name__)
......@@ -88,5 +89,10 @@ def urlencode(context, value):
return quote_plus(value)
def inject_version():
return {"validata_ui_version": VERSION}
# Keep this import after app initialisation (to avoid cyclic imports)
from . import views # noqa isort:skip
......@@ -74,19 +74,20 @@
<footer class="footer hidden-print">
Le service de validation du <a href="">projet Validata</a>
est mis à disposition par
<a href="">OpenDataFrance</a> avec
l'aide de <a href="">Jailbreak</a>
<ul class="list-unstyled mt-4">
<a href="/api/v1/apidocs" target="_blank">API</a>
| <a href="" target="_blank">Code source</a>
| <a href="" target="_blank">Salon de discussion public</a>
l'aide de <a href="">Jailbreak</a>.
<a href="/api/v1/apidocs" target="_blank">API</a>
| <a href="" target="_blank">Codes sources</a>
| <a href="" target="_blank">Salon de discussion public</a>
<p class="text-muted">
(version <a href="{{ validata_ui_version }}" target="_blank">{{ validata_ui_version }}</a>)
<script src="" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
VERSION = '0.2.0'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment