feat: Add images to adoption notice detail view

This commit is contained in:
moanos [he/him] 2024-08-08 17:04:22 +02:00
parent 05d56e278d
commit f030083266

View File

@ -37,6 +37,12 @@
</tr> </tr>
</table> </table>
</div> </div>
<div class="card">
<h1>{% translate "Bilder" %}</h1>
{% for photo in adoption_notice.get_photos %}
<img src="{{ MEDIA_URL }}/{{ photo.image }}" alt="{{ photo.alt_text }}">
{% endfor %}
</div>
<div class="card"> <div class="card">
<h1>{% translate "Beschreibung" %}</h1> <h1>{% translate "Beschreibung" %}</h1>
<p>{% if adoption_notice.description %} <p>{% if adoption_notice.description %}