]> git.0d.be Git - panikweb.git/commitdiff
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 9519bd15f60c57645e4b89a9fa317d31b35a6aba..ff3b12bc5821dfa8230de16c6ddf32fd3328490f 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 bf44c548afc326573ff85c4890ff9d351bb7c2cf..226dd175e3a65dbcd4e544c2db7ebf283598f521 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 0a1867887796543fa454c5d03ad73f1e4401f8e2..df832feb44b3b13cc3a3a53d070b353e633c46e8 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 1ea8b050e97c954384557a96d2eaa2fdcebb1db7..8ddea397dffc6f8047153d84d5564ca7d6907517 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 677a43b933532adc8b65dd20f87f77b7e813ee04..a7eb8ed9444b4617efaa73f1935614b35128055f 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 5b82b9f80b21662bed627a6593219ae26f5a1650..62ac48bd9ff31bd91d711368192b30b179951909 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 3cb5d91e7bc1cc873b0e06be029b74a029d3c391..b38ce4866b953baecbfd50ac6dced57bb8e1a9d4 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 fa6dc8df3d0d2ae7dec9035bf90fba36d3248cb2..4fe4345d5866013fad77fa01541a0e55bd04ab85 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 7484bd1fb7ef90b8c7cc38bb9077fee2729e833d..449a9d98cd3e9e42fad25a999684a6b69d85aafc 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 585317dc119a050a34cc2576d19dbd245b0f8706..7347e5ed154d5a0cc3f4a6862659d94e1d0a5643 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"}}