From 94cc66e3f2687af6eed188f5e55c7fd7d996060a Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Wed, 1 May 2024 15:21:11 +0200 Subject: [PATCH] On n'affiche le lieu que s'il existe --- .../single-event/event-in-flat-list-inc.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html index a8526ed..a8c7c57 100644 --- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-in-flat-list-inc.html @@ -12,8 +12,10 @@ {% if not no_location %} - {% picto_from_name "map-pin" %} - {% include "agenda_culturel/event-location-inc.html" with event=event %} + {% if event.location or event.exact_location %} + {% picto_from_name "map-pin" %} + {% include "agenda_culturel/event-location-inc.html" with event=event %} + {% endif %} {% endif %} {% if event.has_recurrences %}