feat: Add info that there are no pictures on animal
This commit is contained in:
parent
7deedad351
commit
f8400e5178
@ -20,10 +20,13 @@
|
||||
<p>{{ animal.description }}</p>
|
||||
<h2>{% translate "Bilder" %}</h2>
|
||||
<div class="photos">
|
||||
{% for image in animal.get_photos %}
|
||||
<div class="card-photo">
|
||||
{% for image in animal.get_photos %}
|
||||
<div class="card-photo">
|
||||
<img src="/media/{{ image.image }}" alt="{{ image.alt_text }}">
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% if not animal.get_photos %}
|
||||
{% translate "Keine Bilder" %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user