Commit af4b7056 authored by Simon Daron's avatar Simon Daron
Browse files

Fallback on emission images for episodes

parent 2901f656
......@@ -5,6 +5,8 @@
<div class="logo">
{% if episode.image %}
<img src="{{ episode.image|thumbnail:'60x60' }}"/>
{% elif episode.emission.image %}
<img src="{{ episode.emission.image|thumbnail:'60x60' }}"/>
{% else %}
<img class="smooth" style="width:60px;" src="{% static "img/episode.png" %}"/>
{% endif %}
......
......@@ -25,10 +25,14 @@
<div class="logo">
{% if model = "inline" and episode.image %}
<img src="{{ episode.image|thumbnail:'60x60' }}"/>
{% elif model = "inline" and emission.image %}
<img src="{{ episode.emission.image|thumbnail:'60x60' }}"/>
{% elif model = "inline" %}
<img class="smooth" style="width:60px;" src="{% static "img/episode.png" %}"/>
{% elif episode.image %}
<img src="{{ episode.image|thumbnail:'150x150' }}"/>
{% elif emission.image %}
<img src="{{ episode.emission.image|thumbnail:'150x150' }}"/>
{% else %}
<img class="smooth" style="width:150px;" src="{% static "img/episode.png" %}"/>
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment