Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
171066d4
Commit
171066d4
authored
Jul 25, 2018
by
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
Changes
4
Show whitespace changes
Inline
Side-by-side
docs/thaliawebsite.rst
View file @
171066d4
...
...
@@ -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
---------------------------
...
...
website/thaliawebsite/context_processors.py
0 → 100644
View file @
171066d4
"""
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'
)}
website/thaliawebsite/settings/settings.py
View file @
171066d4
...
...
@@ -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'
,
],
},
},
...
...
website/thaliawebsite/templates/base.html
View file @
171066d4
...
...
@@ -51,6 +51,8 @@
<script
type=
"text/javascript"
src=
"{% static "
js
/
thimbus.js
"
%}"
></script>
{% endcompress %}{% endblock %}
<!-- build commit: {{ SOURCE_COMMIT }} -->
</head>
<!-- body -->
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment