]> git.0d.be Git - panikweb.git/commitdiff
remove usage of obsolete |image_file filter l-autre-radio
authorFrédéric Péters <fpeters@0d.be>
Thu, 16 Dec 2021 16:01:56 +0000 (17:01 +0100)
committerFrédéric Péters <fpeters@0d.be>
Thu, 16 Dec 2021 16:01:56 +0000 (17:01 +0100)
panikweb/templates/combo/topik_menu_item.html

index 9519bd15f60c57645e4b89a9fa317d31b35a6aba..143c67144ee3aac24aede8af20af4cbb7baaaad1 100644 (file)
@@ -3,19 +3,13 @@
   <div class="topik inline cf">
     <a class="block cf topik-link" href="{{page.get_online_url}}">
     <div class="logo">
-      {% with page|image_file as logo %}
-        {% if logo %}
-          {% thumbnail logo "60x60" crop="50% 25%" as im %}
-          <img width="60" height="60" src="{{im.url}}"/>
-          {% endthumbnail %}
-        {% elif page.picture %}
+        {% if page.picture %}
           {% thumbnail page.picture "60x60" crop="50% 25%" as im %}
           <img width="60" height="60" src="{{im.url}}"/>
           {% endthumbnail %}
         {% else %}
           <img src="/static/img/sound.png" width="60" height="60">
         {% endif %}
-      {% endwith %}
     </div>
     <div class="content">
       <div class="title">