]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/combo/topik_menu_item.html
use page pictures in topiks menu items
[panikweb.git] / 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 %}