From 9c50e5891fba4f329a9b739a4928ce8782ef8d58 Mon Sep 17 00:00:00 2001 From: Leonhard Strohmidel Date: Sat, 17 Sep 2022 21:22:51 +0200 Subject: [PATCH] Removing Partial TemplateTag --- .../lostplaces/templates/global.html | 2 +- .../lostplaces/templates/home.html | 7 ++----- .../lostplaces/templates/home_unauth.html | 6 ++---- .../templates/place/place_detail.html | 20 +++++-------------- 4 files changed, 10 insertions(+), 25 deletions(-) diff --git a/django_lostplaces/lostplaces/templates/global.html b/django_lostplaces/lostplaces/templates/global.html index 9363682..280c504 100644 --- a/django_lostplaces/lostplaces/templates/global.html +++ b/django_lostplaces/lostplaces/templates/global.html @@ -89,7 +89,7 @@ {% block footer %} - {% partial 'nav/footer' %} + {% include 'partials/nav/footer.html' %} {% endblock footer %} diff --git a/django_lostplaces/lostplaces/templates/home.html b/django_lostplaces/lostplaces/templates/home.html index a09bc7b..dc8803b 100644 --- a/django_lostplaces/lostplaces/templates/home.html +++ b/django_lostplaces/lostplaces/templates/home.html @@ -12,13 +12,10 @@ {% block maincontent %} -{% partial 'welcome' %} +{% include 'partials/welcome.html' %}
-{% partial 'osm_map' %} - {% set config mapping_config %} - {% set modifier 'wide' %} -{% endpartial %} +{% include 'partials/osm_map.html' with config=mapping_config modifier='wide' %}

{% translate 'Explore the latest places' %}