From: Guillaume Pellerin Date: Mon, 10 Oct 2016 15:37:59 +0000 (+0200) Subject: Use event.parent images X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c658e839dda7c6261e308706da7aa03068ad47c4;p=mezzo.git Use event.parent images --- diff --git a/app/templates/agenda/includes/event_linecard.html b/app/templates/agenda/includes/event_linecard.html index bebd2e3b..e8199f67 100644 --- a/app/templates/agenda/includes/event_linecard.html +++ b/app/templates/agenda/includes/event_linecard.html @@ -25,6 +25,14 @@ + {% else %} + {% with event.parent.images.all|get_type:'card' as images %} + {% if images %} + + + + {% endif %} + {% endwith %} {% endif %} {% endwith %}