Show git branch and commit hash on homepage if available.

This commit is contained in:
Jan Böhmer 2019-10-13 00:44:50 +02:00
parent 3c16632a89
commit 329d8c871e
3 changed files with 86 additions and 5 deletions

View file

@ -5,6 +5,9 @@
<h1 class="display-3">{{ partdb_title }}</h1>
<h4>
{% trans %}version.caption{% endtrans %}: {{ shivas_app_version }}
{% if git_branch is not empty or git_commit is not empty %}
({{ git_branch ?? '' }}/{{ git_commit ?? '' }})
{% endif %}
</h4>
{% if banner is not empty %}
<hr>