From c658e839dda7c6261e308706da7aa03068ad47c4 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 10 Oct 2016 17:37:59 +0200 Subject: [PATCH] Use event.parent images --- app/templates/agenda/includes/event_linecard.html | 8 ++++++++ 1 file changed, 8 insertions(+) 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 %} -- 2.39.5