feat: Add info that there are no pictures on animal

This commit is contained in:
moanos [he/him] 2024-08-08 17:18:47 +02:00
parent 7deedad351
commit f8400e5178

View File

@ -20,10 +20,13 @@
<p>{{ animal.description }}</p> <p>{{ animal.description }}</p>
<h2>{% translate "Bilder" %}</h2> <h2>{% translate "Bilder" %}</h2>
<div class="photos"> <div class="photos">
{% for image in animal.get_photos %} {% for image in animal.get_photos %}
<div class="card-photo"> <div class="card-photo">
<img src="/media/{{ image.image }}" alt="{{ image.alt_text }}"> <img src="/media/{{ image.image }}" alt="{{ image.alt_text }}">
</div> </div>
{% endfor %} {% endfor %}
{% if not animal.get_photos %}
{% translate "Keine Bilder" %}
{% endif %}
</div> </div>
</div> </div>