added ability to set custom logo in navbar

This commit is contained in:
vabene1111
2023-11-27 20:29:01 +01:00
parent 31f93285d8
commit 977d2822bc
2 changed files with 10 additions and 2 deletions

View File

@@ -82,7 +82,7 @@
{% if not request.user.is_authenticated or request.user.userpreference.theme == request.user.userpreference.TANDOOR %}
<a class="navbar-brand p-0 me-2 justify-content-center" href="{% base_path request 'base' %}"
aria-label="Tandoor">
<img class="brand-icon" src="{% static 'assets/brand_logo.png' %}" alt="Logo">
<img class="brand-icon" src="{% logo_url request %}" alt="Logo">
</a>
{% endif %}
{% endif %}
@@ -96,7 +96,7 @@
{% if not request.user.is_authenticated or request.user.userpreference.theme == request.user.userpreference.TANDOOR %}
<a class="navbar-brand p-0 me-2 justify-content-center" href="{% base_path request 'base' %}"
aria-label="Tandoor">
<img class="brand-icon" src="{% static 'assets/brand_logo.png' %}" alt="Logo">
<img class="brand-icon" src="{% logo_url request %}" alt="Logo">
</a>
{% endif %}
{% endif %}