Commit 5c9ead0f authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Allow partners to override site header image

(the big one)
parent 988848ef
{% 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>
......
......@@ -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>
......
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