From: Guillaume Pellerin Date: Thu, 25 Aug 2016 16:03:49 +0000 (+0200) Subject: Fix page_card images X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7031b73544b1366f22bf2c10c37031efe5f42f3f;p=mezzo.git Fix page_card images --- diff --git a/app/templates/pages/includes/page_card.html b/app/templates/pages/includes/page_card.html index 2e911a93..39f4cdf6 100644 --- a/app/templates/pages/includes/page_card.html +++ b/app/templates/pages/includes/page_card.html @@ -1,8 +1,10 @@ {% load mezzanine_tags organization_tags %}
- {% with object.get_content_model.images.all|get_type:'card' as image %} - + {% with object.get_content_model.images.all|get_type:'card' as images %} + {% if images %} + + {% endif %} {% endwith %}