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

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 ...@@ -34,6 +34,14 @@ thaliawebsite\.celery module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
thaliawebsite\.context\_processors module
-----------------------------------------
.. automodule:: thaliawebsite.context_processors
:members:
:undoc-members:
:show-inheritance:
thaliawebsite\.forms module 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 = [ ...@@ -121,6 +121,7 @@ TEMPLATES = [
'django.contrib.messages.context_processors.messages', 'django.contrib.messages.context_processors.messages',
'partners.context_processors.showcased_partners', 'partners.context_processors.showcased_partners',
'announcements.context_processors.announcements', 'announcements.context_processors.announcements',
'thaliawebsite.context_processors.source_commit',
], ],
}, },
}, },
......
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
<script type="text/javascript" src="{% static "js/thimbus.js" %}"></script> <script type="text/javascript" src="{% static "js/thimbus.js" %}"></script>
{% endcompress %}{% endblock %} {% endcompress %}{% endblock %}
<!-- build commit: {{ SOURCE_COMMIT }} -->
</head> </head>
<!-- body --> <!-- body -->
......
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