root: allow for changing of logo and branding

This commit is contained in:
Jens Langhammer
2020-09-13 17:52:33 +02:00
parent 8b99afa34d
commit bebeff9f7f
5 changed files with 21 additions and 6 deletions

View File

@ -21,8 +21,10 @@
</div>
<a class="pf-c-page__header-brand-link">
<div class="pf-c-brand pb-brand">
<img src="{% static 'passbook/logo.svg' %}" alt="passbook icon" />
<small><small>passbook</small></small>
<img src="{{ config.passbook.branding.logo }}" alt="passbook icon">
{% if config.passbook.branding.title_show %}
<small><small>{{ config.passbook.branding.title }}</small></small>
{% endif %}
</div>
</a>
</div>

View File

@ -10,7 +10,7 @@
<link rel="preload" href="{% static 'passbook/fonts/DINEngschriftStd.woff' %}" as="font" type="font/woff">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{% block title %}{% trans title|default:"passbook" %}{% endblock %}</title>
<title>{% block title %}{% trans title|default:config.passbook.branding.title %}{% endblock %}</title>
<link rel="icon" type="image/png" href="{% static 'passbook/logo.png' %}">
<link rel="shortcut icon" type="image/png" href="{% static 'passbook/logo.png' %}">
<link rel="stylesheet" type="text/css" href="{% static 'node_modules/@patternfly/patternfly/patternfly.css' %}">