fix: Translation and photo display

This commit is contained in:
moanos [he/him] 2024-05-01 10:18:46 +02:00
parent bb45f598a0
commit ba7e229ab2

View File

@ -1,4 +1,5 @@
{% load static %}
{% load i18n %}
<div class="detail-animal"></div>
<div class="detail-animal-header">
<h1>{{ animal.name }}</h1>
@ -19,7 +20,7 @@
<p>{{ animal.description }}</p>
<h2>{% translate "Bilder" %}</h2>
<div class="photos">
{% for image in animal.photos_list %}
{% for image in animal.get_photos %}
<div class="card-photo">
<img src="/media/{{ image.image }}" alt="{{ image.alt_text }}">
</div>