From 904a46652ec12bed9906003e2647f5334fb43c1a Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 4 Aug 2024 14:40:14 +0200 Subject: [PATCH] feat: use markdown for adoption description --- .../details/detail_adoption_notice.html | 13 ++++++++----- .../partials/partial-adoption-notice.html | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/details/detail_adoption_notice.html b/src/fellchensammlung/templates/fellchensammlung/details/detail_adoption_notice.html index 7f78d5e..40ab138 100644 --- a/src/fellchensammlung/templates/fellchensammlung/details/detail_adoption_notice.html +++ b/src/fellchensammlung/templates/fellchensammlung/details/detail_adoption_notice.html @@ -5,7 +5,8 @@ {% block content %}

{{ adoption_notice.name }}

- {% translate 'Foto hinzufügen' %} + {% translate 'Foto hinzufügen' %} {% translate 'Bearbeiten' %}
@@ -34,13 +35,15 @@ -

- {% if adoption_notice.description %} - {{ adoption_notice.description }} +

+

{% translate "Beschreibung" %}

+

{% if adoption_notice.description %} + {{ adoption_notice.description | render_markdown }} {% else %} {% translate "Keine Beschreibung angegeben" %} {% endif %} -

+

+
{% for animal in adoption_notice.animals %} diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html index ff7388d..e341738 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-adoption-notice.html @@ -21,7 +21,7 @@

{% if adoption_notice.description %} - {{ adoption_notice.description }} + {{ adoption_notice.description | render_markdown }} {% else %} {% translate "Keine Beschreibung" %} {% endif %}