From: Frédéric Péters Date: Thu, 12 Mar 2020 12:10:05 +0000 (+0100) Subject: use page pictures in topiks menu items X-Git-Tag: v2021~194 X-Git-Url: https://git.0d.be/?p=panikweb.git;a=commitdiff_plain;h=45cd454b2397932b78d98f0518697c53eff1cc14 use page pictures in topiks menu items --- 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 %}