From 2e9039a569d0792eeea2d8663bb4a2b5594ebabb Mon Sep 17 00:00:00 2001 From: moanos Date: Wed, 18 Jun 2025 20:05:23 +0200 Subject: [PATCH] feat: Improve display when no contactdata is there + formatting --- ...a-partial-rescue-organization-contact.html | 69 ++++++++++--------- 1 file changed, 37 insertions(+), 32 deletions(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-rescue-organization-contact.html b/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-rescue-organization-contact.html index a911054..67833cd 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-rescue-organization-contact.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-rescue-organization-contact.html @@ -4,57 +4,62 @@

{% trans "Kontaktdaten" %}

{% if org.hast_contact_data %} - {% if org.website %} - + {% if org.website %} + - {{ org.website }} - - {% endif %} - {% if org.phone_number %} - + {{ org.website }} + + {% endif %} + {% if org.phone_number %} + - {{ org.phone_number }} - - {% endif %} - {% if org.email %} - + {{ org.phone_number }} + + {% endif %} + {% if org.email %} + - {{ org.email }} - - {% endif %} + {{ org.email }} + + {% endif %} - {% if org.fediverse_profile %} - + {% if org.fediverse_profile %} + - {{ org.fediverse_profile }} - - {% endif %} - {% if org.instagram %} - + {{ org.fediverse_profile }} + + {% endif %} + {% if org.instagram %} + - {{ org.instagram }} - - {% endif %} + {{ org.instagram }} + + {% endif %} - {% if org.facebook %} - + {% if org.facebook %} + - {{ org.facebook }} - - {% endif %} - {% else %} -

{% translate 'Keine Kontaktdaten hinterlegt' %}

+ {{ org.facebook }} + + {% endif %} + {% else %} +
+ + + + {% translate 'Keine Kontaktdaten hinterlegt' %} +
{% endif %}
\ No newline at end of file