]> git.0d.be Git - panikweb-esperanzah.git/commitdiff
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 e92c32f6a1e1f76edc33ae9f0f58794b598201a4..9519bd15f60c57645e4b89a9fa317d31b35a6aba 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 %}