From e2763539b13e73e0b6218acdc0d0a9b613f78df0 Mon Sep 17 00:00:00 2001
From: Tobias Mieves <tobias.mieves@tu-dortmund.de>
Date: Sun, 31 Dec 2023 15:26:46 +0100
Subject: [PATCH] fix: Include link to home_view into home_logo block to allow
 namespaced apps

BREAKING CHANGE: The link to home_view is now included into the home_logo block so that it needs to be provided by the app if overwritten.
---
 templates/base.html | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/templates/base.html b/templates/base.html
index a1f50ee..996ad42 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -24,9 +24,11 @@
 				</label>
 			</div>
 			<div class="flex-1 px-2 mx-2">
-				<a href="{% url 'home_view' %}" class="text-lg font-bold align-middle">
-					{% block home_logo %}DaisyUI{% endblock %}
-				</a>
+				{% block home_logo %}
+					<a href="{% url 'home_view' %}" class="text-lg font-bold align-middle">
+						DaisyUI
+					</a>
+				{% endblock %}
 			</div>
 			<div class="flex-none hidden lg:block z-10">
 				<ul class="menu menu-horizontal">
-- 
GitLab