fix no media also on simple and simple_white
This commit is contained in:
parent
6a74d634de
commit
575a6125f5
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue