From f8400e5178cf47ed6bcfa90ae2ee34113769a31a Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 8 Aug 2024 17:18:47 +0200 Subject: [PATCH] feat: Add info that there are no pictures on animal --- .../fellchensammlung/details/detail-animal-partial.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/details/detail-animal-partial.html b/src/fellchensammlung/templates/fellchensammlung/details/detail-animal-partial.html index 2209b9d..86c4eec 100644 --- a/src/fellchensammlung/templates/fellchensammlung/details/detail-animal-partial.html +++ b/src/fellchensammlung/templates/fellchensammlung/details/detail-animal-partial.html @@ -20,10 +20,13 @@

{{ animal.description }}

{% translate "Bilder" %}

- {% for image in animal.get_photos %} -
+ {% for image in animal.get_photos %} +
{{ image.alt_text }}
{% endfor %} + {% if not animal.get_photos %} + {% translate "Keine Bilder" %} + {% endif %}
\ No newline at end of file