fix no media also on simple and simple_white

This commit is contained in:
encrypt 2024-06-10 12:38:51 +02:00
parent 6a74d634de
commit 575a6125f5
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@
{% for event in events %}
<div class="event">
<div class="center flyer-container">
<img class="flyer" src="https://balotta.org/media/thumb/{{event.media[0].url}}" style="object-position: {{ event.media[0].thumbnailPosition }}"></img>
<img class="flyer" src="https://balotta.org/{{"media/thumb/" + event.media[0].url if event.media else "fallbackimage.png"}}" style="object-position: {{ event.media[0].thumbnailPosition if event.media else "50%"}}"></img>
</div>
<div class="event_info">
<h3 class="title">{{ event.title }}</h3>

View file

@ -28,7 +28,7 @@
{% for event in events %}
<div class="event">
<div class="center flyer-container">
<img class="flyer" src="https://balotta.org/media/thumb/{{event.media[0].url}}" style="object-position: {{ event.media[0].thumbnailPosition }}"></img>
<img class="flyer" src="https://balotta.org/{{"media/thumb/" + event.media[0].url if event.media else "fallbackimage.png"}}" style="object-position: {{ event.media[0].thumbnailPosition if event.media else "50%"}}"></img>
</div>
<div class="event_info">
<h3 class="title">{{ event.title }}</h3>