projects
/
GitLab
/
stricted-build
/
lineage_builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add footer, include version
[GitLab/stricted-build/lineage_builder.git]
/
ui
/
app.py
diff --git
a/ui/app.py
b/ui/app.py
index 85aa8c34b651faae448f1b71298bc2bdde93aa8a..60b450baabfa07d200c27d155b8eb62d63c9fbb5 100644
(file)
--- a/
ui/app.py
+++ b/
ui/app.py
@@
-31,6
+31,11
@@
nav.register_element('top', Navbar(
headers = {'Private-Token': os.environ.get('GITLAB_TOKEN', '')}
+def version():
+ return os.environ.get("VERSION", "dev")[:6]
+
+app.jinja_env.globals.update(version=version)
+
def parse_args():
args = {}
if request.args: