Commit 7ef5e958 authored by Andreas Valder's avatar Andreas Valder
Browse files

now using long commit hash for git link

parent 1d59adf6
......@@ -57,7 +57,7 @@ if config['DEBUG']:
# get git commit
import subprocess
app.jinja_env.globals['gitversion'] = subprocess.check_output(['git', "log", "-g", "-1", "--pretty=%h # %d # %s"]).decode('UTF-8').split('#')
app.jinja_env.globals['gitversion'] = subprocess.check_output(['git', "log", "-g", "-1", "--pretty=%H # %h # %d # %s"]).decode('UTF-8').split('#')
if not config.get('SECRET_KEY', None):
config['SECRET_KEY'] = os.urandom(24)
......
......@@ -147,7 +147,7 @@
</li>
{% if ismod() or config.DEBUG %}
<li class="pull-right">
<a target="_blank" href="https://git.fsmpi.rwth-aachen.de/videoagwebsite/videoagwebsite/commit/{{ gitversion[0] }}"><span title="{{ gitversion[0] }} {{ gitversion[1] }}: {{ gitversion[2] }}" data-toggle="tooltip">{{ gitversion[0] }}</span></a>
<a target="_blank" href="https://git.fsmpi.rwth-aachen.de/videoagwebsite/videoagwebsite/commit/{{ gitversion[0] }}"><span title="{{ gitversion[2] }} {{ gitversion[1] }}: {{ gitversion[3] }}" data-toggle="tooltip">{{ gitversion[1] }}</span></a>
<span>{{ gethostname() }}</span>
</li>
{% endif %}
......
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