use page pictures in topiks menu items
authorFrédéric Péters <fpeters@0d.be>
Thu, 12 Mar 2020 12:10:05 +0000 (13:10 +0100)
committerFrédéric Péters <fpeters@0d.be>
Thu, 12 Mar 2020 12:12:30 +0000 (13:12 +0100)
panikweb_templates/templates/combo/topik_menu_item.html

index e92c32f..9519bd1 100644 (file)
@@ -8,6 +8,10 @@
           {% thumbnail logo "60x60" crop="50% 25%" as im %}
           <img 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}}"/>
+          {% endthumbnail %}
         {% else %}
           <img src="/static/img/sound.png" width="60" height="60">
         {% endif %}