Commit e02331d9 authored by fred's avatar fred
Browse files

fix fallback to emission image for soundfiles

parent ed74ec09
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="logo"> <div class="logo">
{% if soundfile.episode.image %} {% if soundfile.episode.image %}
<img src="{{ soundfile.episode.image|thumbnail:'60x60' }}"/> <img src="{{ soundfile.episode.image|thumbnail:'60x60' }}"/>
{% elif episode.emission.image %} {% elif soundfile.episode.emission.image %}
<img src="{{ soundfile.episode.emission.image|thumbnail:'60x60' }}"/> <img src="{{ soundfile.episode.emission.image|thumbnail:'60x60' }}"/>
{% else %} {% else %}
<img width="60" height="60" src="{% static "img/sound.png" %}"/> <img width="60" height="60" src="{% static "img/sound.png" %}"/>
......
Supports Markdown
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