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>
|
<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>
|
Loading…
Reference in New Issue
Block a user