From 23cee274a59d99c2ac72a2c6096e03b5756be3d8 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 24 Feb 2023 12:31:46 +0100 Subject: [PATCH] FEATURE [documents][listing] show document titles in activity listing if there are any and user has see_detail rights --- .../views/Activity/_list_item.html.twig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig index b7f13210b..8faa68b6b 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig @@ -165,6 +165,22 @@ documents attendee #} + + {% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) and activity.documents|length > 0 %} +
+
+

{{ 'Documents'|trans }}

+
+
+
    + {% for d in activity.documents %} +
  • {{ d.title }}
  • + {% endfor %} +
+
+
+ {% endif %} +