Skip to content
GitLab
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
5c9ead0f
Commit
5c9ead0f
authored
Aug 13, 2016
by
Luuk Scholten
Browse files
Allow partners to override site header image
(the big one)
parent
988848ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/partners/templates/partners/partner.html
View file @
5c9ead0f
{% extends "base.html" %}
{% load i18n %}
{% block header_image %}{% spaceless %}
{% if partner.site_header %}
{{ partner.site_header.url }}
{% else %}
{{ block.super }}
{% endif %}
{% endspaceless %}{% endblock header_image %}
{% block body %}
<h1>
{{ partner.name }}
</h1>
...
...
website/thaliawebsite/templates/base.html
View file @
5c9ead0f
...
...
@@ -83,7 +83,10 @@
<div
id=
"header-panel"
class=
"wrapper header-parallax"
>
{# todo header image #}
<div
class=
"header-image container"
style=
"background-image: url('{% static "
images
/
header_default.jpg
"
%}')"
></div>
<div
class=
"header-image container"
style=
"background-image: url('{% block header_image %}{% static "
images
/
header_default.jpg
"
%}{%
endblock
header_image
%}')"
>
</div>
<div
class=
"page-title"
>
<h1>
{% block page_title %}{% trans "Study Association Thalia" %}{% endblock %}
</h1>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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