feat: Use heading + description

This commit is contained in:
moanos [he/him] 2024-09-27 15:36:40 +02:00
parent cd64495851
commit 4d22702e2d
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{% load custom_tags %}
{% load custom_tags %}
{% load i18n %}
<div class="card">

View File

@ -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(`
<h1>{{ an.name }}</h1><p>{{ an.description }}</p>
`
);
// create DOM element for the marker