templates: add empty alt attributes to icon images
authorFrédéric Péters <fpeters@0d.be>
Wed, 22 Apr 2020 18:32:25 +0000 (20:32 +0200)
committerFrédéric Péters <fpeters@0d.be>
Wed, 22 Apr 2020 18:32:25 +0000 (20:32 +0200)
panikweb_templates/templates/combo/topik_menu_item.html
panikweb_templates/templates/emissions/emission_detail.html
panikweb_templates/templates/emissions/resume.html
panikweb_templates/templates/episodes/resume.html
panikweb_templates/templates/news/inline.html
panikweb_templates/templates/panikombo/audio.html
panikweb_templates/templates/panikombo/episode.html
panikweb_templates/templates/panikombo/episode_auto_selection.html
panikweb_templates/templates/soundfiles/embed.html
panikweb_templates/templates/soundfiles/resume.html

index 9519bd1..ff3b12b 100644 (file)
@@ -6,14 +6,14 @@
       {% with page|image_file as logo %}
         {% if logo %}
           {% thumbnail logo "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 page.picture %}
           {% thumbnail page.picture "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 src="/static/img/sound.png" width="60" height="60">
+          <img alt="" src="/static/img/sound.png" width="60" height="60">
         {% endif %}
       {% endwith %}
     </div>
index bf44c54..226dd17 100644 (file)
                                        {% if emission.image %}
                                        {% thumbnail emission.image "60x60" crop="50% 25%" as im %}
                                        <div class="logo">
-                                       <img class="left" height="60" width="60" src="{{im.url}}"/>
+                                       <img alt="" class="left" height="60" width="60" src="{{im.url}}"/>
                                        </div>
                                        {% endthumbnail %}
                                        {% endif %}
index 0a18678..df832fe 100644 (file)
@@ -5,10 +5,10 @@
                        <div class="logo left">
                                {% if emission.image %}
                                        {% thumbnail 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>
                        <div class="title">
index 1ea8b05..8ddea39 100644 (file)
                <a href="{% url 'episode-view' emission_slug=episode.emission.slug slug=episode.slug %}">
                {% if model == "inline" and episode.image %}
                        {% thumbnail 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 model == "inline" and episode.emission.image %}
                        {% thumbnail 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 %}
                {% elif model == "inline" %}
-                       <img class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
+                       <img alt="" class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
                {% elif episode.image %}
                        {% thumbnail episode.image "150x150" crop="50% 25%" as im %}
-                       <img width="150" height="150" src="{{im.url}}"/>
+                       <img alt="" width="150" height="150" src="{{im.url}}"/>
                        {% endthumbnail %}
                {% elif episode.emission.image %}
                        {% thumbnail episode.emission.image "150x150" crop="50% 25%" as im %}
-                       <img width="150" height="150" src="{{im.url}}"/>
+                       <img alt="" width="150" height="150" src="{{im.url}}"/>
                        {% endthumbnail %}
                {% else %}
-                       <img class="smooth" style="width:150px;" src="{% static "img/emission.png" %}"/>
+                       <img alt="" class="smooth" style="width:150px;" src="{% static "img/emission.png" %}"/>
                {% endif %}
                </a>
        </div>
index 677a43b..a7eb8ed 100644 (file)
                <div class="logo">
                {% if class == "special" and content.image %}
                        {% thumbnail content.image "480x320" crop="50% 25%" as im %}
-                       <img class="normal" src="{{im.url}}"/>
+                       <img alt="" class="normal" src="{{im.url}}"/>
                        {% endthumbnail %}
                {% elif content.image %}
                        {% thumbnail content.image "60x60" crop="50% 25%" as im %}
-                       <img class="left" width="60" height="60" src="{{im.url}}"/>
+                       <img alt="" class="left" width="60" height="60" src="{{im.url}}"/>
                        {% endthumbnail %}
                {% elif content.emission.image %}
                        {% thumbnail content.emission.image "60x60" crop="50% 25%" as im %}
-                       <img class="left" width="60" height="60" src="{{im.url}}"/>
+                       <img alt="" class="left" width="60" height="60" src="{{im.url}}"/>
                        {% endthumbnail %}
                {% else %}
-                       <img class="left" width="60" height="60" src="{% static "img/actu.png" %}"/>
+                       <img alt="" class="left" width="60" height="60" src="{% static "img/actu.png" %}"/>
                {% endif %}
                </div>
                <div class="content">
index 5b82b9f..62ac48b 100644 (file)
@@ -4,14 +4,14 @@
        <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">
index 3cb5d91..b38ce48 100644 (file)
@@ -4,14 +4,14 @@
        <div class="logo">
                {% if episode.image %}
                        {% thumbnail 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 episode.emission.image %}
                        {% thumbnail 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">
index fa6dc8d..4fe4345 100644 (file)
@@ -6,14 +6,14 @@
        <div class="logo">
                {% if episode.image %}
                        {% thumbnail 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 episode.emission.image %}
                        {% thumbnail 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">
index 7484bd1..449a9d9 100644 (file)
        <div class="logo">
                {% if episode.image %}
                        {% thumbnail 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 episode.emission.image %}
                        {% thumbnail 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="custom">
index 585317d..7347e5e 100644 (file)
@@ -3,14 +3,14 @@
        <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 width="60" height="60" src="{% static "img/sound.png" %}"/>
+                       <img alt="" width="60" height="60" src="{% static "img/sound.png" %}"/>
                {% endif %}
                <p class="date">
                {{date|date:"d/m/y"}}