From 2c8f6f22f24709d6d55a711c6638628d3b8bf5d3 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 8 Jun 2024 00:50:32 +0200 Subject: [PATCH] Set home title Signed-off-by: Emmy D'Anello --- tfjm/templates/index_eteam.html | 2 ++ tfjm/templates/index_tfjm.html | 2 ++ tfjm/urls.py | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tfjm/templates/index_eteam.html b/tfjm/templates/index_eteam.html index 9d8611a..3a0714b 100644 --- a/tfjm/templates/index_eteam.html +++ b/tfjm/templates/index_eteam.html @@ -2,6 +2,8 @@ {% load i18n %} +{% block content-title %}{% endblock %} + {% block content %}
diff --git a/tfjm/templates/index_tfjm.html b/tfjm/templates/index_tfjm.html index 635ae3b..ba282d6 100644 --- a/tfjm/templates/index_tfjm.html +++ b/tfjm/templates/index_tfjm.html @@ -2,6 +2,8 @@ {% load i18n %} +{% block content-title %}{% endblock %} + {% block content %}
diff --git a/tfjm/urls.py b/tfjm/urls.py index 27e0f6f..d795a49 100644 --- a/tfjm/urls.py +++ b/tfjm/urls.py @@ -30,7 +30,8 @@ from .views import AdminSearchView urlpatterns = [ # TODO ETEAM Rendre ça plus joli - path('', TemplateView.as_view(template_name=f"index_{settings.TFJM_APP.lower()}.html", extra_context=_("Home")), + path('', TemplateView.as_view(template_name=f"index_{settings.TFJM_APP.lower()}.html", + extra_context={'title': _("Home")}), name='index'), path('about/', TemplateView.as_view(template_name="about.html"), name='about'), path('i18n/', include('django.conf.urls.i18n')),