From 4d22702e2da93bf123d1eef6af0b8a7bfde0fcf5 Mon Sep 17 00:00:00 2001 From: moanos Date: Fri, 27 Sep 2024 15:36:40 +0200 Subject: [PATCH] feat: Use heading + description --- .../fellchensammlung/partials/partial-adoption-notice.html | 2 +- .../templates/fellchensammlung/partials/partial-map.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html index e341738..b3f1d32 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html @@ -1,4 +1,4 @@ - {% load custom_tags %} +{% load custom_tags %} {% load i18n %}
diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-map.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-map.html index 728d17b..9b24ab4 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-map.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-map.html @@ -19,8 +19,9 @@ {% for an in adoption_notices %} // create the popup - const popup_{{ forloop.counter }} = new maplibregl.Popup({offset: 25}).setText( - '{{ an.name }}' + const popup_{{ forloop.counter }} = new maplibregl.Popup({offset: 25}).setHTML(` +

{{ an.name }}

{{ an.description }}

+ ` ); // create DOM element for the marker