Commit 171066d4 authored by Thom Wiggers's avatar Thom Wiggers 📐

Merge branch 'feature/commit-in-html' into 'master'

Commit ref in html

Closes #462

See merge request !877
parents eb3629cd 953fdd2a
......@@ -34,6 +34,14 @@ thaliawebsite\.celery module
:undoc-members:
:show-inheritance:
thaliawebsite\.context\_processors module
-----------------------------------------
.. automodule:: thaliawebsite.context_processors
:members:
:undoc-members:
:show-inheritance:
thaliawebsite\.forms module
---------------------------
......
"""
These context processors can be used to expand the context provided
tos views.
"""
import os
def source_commit(_):
return {'SOURCE_COMMIT': os.environ.get('SOURCE_COMMIT', 'unknown')}
......@@ -121,6 +121,7 @@ TEMPLATES = [
'django.contrib.messages.context_processors.messages',
'partners.context_processors.showcased_partners',
'announcements.context_processors.announcements',
'thaliawebsite.context_processors.source_commit',
],
},
},
......
......@@ -51,6 +51,8 @@
<script type="text/javascript" src="{% static "js/thimbus.js" %}"></script>
{% endcompress %}{% endblock %}
<!-- build commit: {{ SOURCE_COMMIT }} -->
</head>
<!-- body -->
......
Markdown is supported
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