From 479e4ffe64c90aba65f75a3c72c7fe08060eb331 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Mon, 10 Jan 2022 17:08:56 +0100 Subject: [PATCH] add notification box in context person, page show activity --- .../views/Activity/showPerson.html.twig | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/showPerson.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/showPerson.html.twig index c90b069ed..fa6cf2ea9 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/showPerson.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/showPerson.html.twig @@ -21,3 +21,21 @@ {% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'person'} %} {% endblock personcontent %} + +{% block block_post_menu %} +
+ + + + {% set notifications = chill_list_notifications('Chill\\ActivityBundle\\Entity\\Activity', entity.id) %} + {% if notifications is not empty %} + {{ notifications|raw }} + {% endif %} + +
+{% endblock %}