root: allow for changing of logo and branding
This commit is contained in:
parent
8b99afa34d
commit
bebeff9f7f
|
@ -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>
|
||||
|
|
|
@ -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' %}">
|
||||
|
|
|
@ -23,8 +23,10 @@
|
|||
<div class="pf-c-login__container">
|
||||
<header class="pf-c-login__header">
|
||||
<div class="pf-c-brand pb-brand">
|
||||
<img src="{% static 'passbook/logo.svg' %}" alt="passbook icon" />
|
||||
<p>passbook</p>
|
||||
<img src="{{ config.passbook.branding.logo }}" alt="passbook icon" />
|
||||
{% if config.passbook.branding.title_show %}
|
||||
<p>{{ config.passbook.branding.title }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
{% block main_container %}
|
||||
|
@ -49,6 +51,13 @@
|
|||
<a href="{{ link.href }}">{{ link.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% if config.passbook.branding.title != "passbook" %}
|
||||
<li>
|
||||
<a href="https://github.com/beryju/passbook">
|
||||
{% trans 'Powered by passbook' %}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</footer>
|
||||
</div>
|
||||
|
|
|
@ -21,6 +21,10 @@ error_reporting:
|
|||
send_pii: false
|
||||
|
||||
passbook:
|
||||
branding:
|
||||
title: passbook
|
||||
title_show: true
|
||||
logo: static/passbook/brand.svg
|
||||
# Optionally add links to the footer on the login page
|
||||
footer_links:
|
||||
- name: Documentation
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
<!-- START CENTERED WHITE CONTAINER -->
|
||||
<table role="presentation" class="main">
|
||||
<img src="{% inline_static_binary "passbook/logo.svg" %}" alt="">
|
||||
<img src="{% inline_static_binary config.passbook.branding.logo %}" alt="">
|
||||
<!-- START MAIN CONTENT AREA -->
|
||||
<tr>
|
||||
<td class="wrapper">
|
||||
|
|
Reference in New Issue