From 51f1661d0cdda0cf04ae4dda50d9da54426e66de Mon Sep 17 00:00:00 2001 From: sabinammm Date: Thu, 3 Mar 2022 14:46:36 +0100 Subject: [PATCH] apps/plans/templates: plan detail shows no participation explanation box when explanation is default text in old plans Fixes #4225 --- .../meinberlin_plans/plan_detail.html | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/meinberlin/apps/plans/templates/meinberlin_plans/plan_detail.html b/meinberlin/apps/plans/templates/meinberlin_plans/plan_detail.html index 68b4cc1e84..8f242b441d 100644 --- a/meinberlin/apps/plans/templates/meinberlin_plans/plan_detail.html +++ b/meinberlin/apps/plans/templates/meinberlin_plans/plan_detail.html @@ -116,37 +116,37 @@

{% endif %} + {% if object.participation_explanation != "Bitte Begründung einfügen" %}

{% trans 'Level of participation' %}: {{ object.get_participation_display }}

- {% if object.participation_explanation != "Bitte Begründung einfügen" %} - {% if object.participation_explanation|length > 300 %} -
- {{ object.participation_explanation|truncatechars:160 }} -
-
- {{ object.participation_explanation }} -
- - {% else %} + {% if object.participation_explanation|length > 300 %} +
+ {{ object.participation_explanation|truncatechars:160 }} +
+
{{ object.participation_explanation }} - {% endif %} +
+ + {% else %} + {{ object.participation_explanation }} {% endif %}
+ {% endif %} {% if object.contact_name or object.contact_address_text or object.contact_email or object.contact_phone or object.contact_url or object.organisation.address or object.organisation.url %}
{% if object.contact_name or object.contact_address_text or object.contact_email or object.contact_phone or object.contact_url %}