From b80f1c038f679c29e224d0c59cf1c98416fd5c81 Mon Sep 17 00:00:00 2001
From: Jean-Marie Favreau
Date: Wed, 30 Oct 2024 14:07:17 +0100
Subject: [PATCH] simplification de l'affichage
Fix #181
---
.../agenda_culturel/single-event/event-single-inc.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html
index e1c7321..01f1a80 100644
--- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html
+++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html
@@ -19,6 +19,8 @@
{% include "agenda_culturel/event-location-inc.html" with event=event %}
{% if event.possibly_duplicated %}
+ {% with poss_dup=event.get_possibly_duplicated|only_allowed:user.is_authenticated %}
+ {% if poss_dup.count > 0 %}
{% if event.possibly_duplicated.fixed %}
cet événement a été {% if user.is_authenticated %}importé plusieurs fois{% else %}importé plusieurs fois{% endif %},
@@ -32,6 +34,8 @@
{% endif %}
{% endif %}
+ {% endwith %}
+ {% endif %}
{% if event.has_image_url %}