From 45cd454b2397932b78d98f0518697c53eff1cc14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 12 Mar 2020 13:10:05 +0100 Subject: [PATCH] use page pictures in topiks menu items --- panikweb_templates/templates/combo/topik_menu_item.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panikweb_templates/templates/combo/topik_menu_item.html b/panikweb_templates/templates/combo/topik_menu_item.html index e92c32f..9519bd1 100644 --- a/panikweb_templates/templates/combo/topik_menu_item.html +++ b/panikweb_templates/templates/combo/topik_menu_item.html @@ -8,6 +8,10 @@ {% thumbnail logo "60x60" crop="50% 25%" as im %} {% endthumbnail %} + {% elif page.picture %} + {% thumbnail page.picture "60x60" crop="50% 25%" as im %} + + {% endthumbnail %} {% else %} {% endif %} -- 2.39.2