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 static %}
{% load i18n %}
<div class="detail-animal"></div> <div class="detail-animal"></div>
<div class="detail-animal-header"> <div class="detail-animal-header">
<h1>{{ animal.name }}</h1> <h1>{{ animal.name }}</h1>
@ -19,7 +20,7 @@
<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.photos_list %} {% 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>