]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/panikombo/audio.html
templates: add empty alt attributes to icon images
[panikweb.git] / panikweb_templates / templates / panikombo / audio.html
index 8af028e160ec56b4a4c2bbe087ed18fd461ef530..62ac48bd9ff31bd91d711368192b30b179951909 100644 (file)
@@ -1,16 +1,17 @@
 {% load paniktags thumbnail staticfiles %}
+{% if soundfile %}
 <div class="wrapper extra-soundfiles">
        <div class="logo">
                {% if soundfile.episode.image %}
                        {% thumbnail soundfile.episode.image "60x60" crop="50% 25%" as im %}
-                       <img width="60" height="60" src="{{im.url}}"/>
+                       <img alt="" width="60" height="60" src="{{im.url}}"/>
                        {% endthumbnail %}
                {% elif soundfile.episode.emission.image %}
                        {% thumbnail soundfile.episode.emission.image "60x60" crop="50% 25%" as im %}
-                       <img width="60" height="60" src="{{im.url}}"/>
+                       <img alt="" width="60" height="60" src="{{im.url}}"/>
                        {% endthumbnail %}
                {% else %}
-                       <img class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
+                       <img alt="" class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
                {% endif %}
        </div>
 <ul class="padded custom list">
@@ -23,3 +24,4 @@
   {% audio sound=soundfile %}</li>
 </ul>
 </div>
+{% endif %}