From da2253258701e8879fad987b6a112467bf90db1b Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 28 Jan 2022 22:27:30 +0100 Subject: [PATCH] cancel comments in entity notifications --- .../Resources/views/Notification/_list_item.html.twig | 8 +------- .../extension_list_notifications_for.html.twig | 5 +---- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/views/Notification/_list_item.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Notification/_list_item.html.twig index 41f04f369..cac05178e 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Notification/_list_item.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Notification/_list_item.html.twig @@ -113,7 +113,7 @@ {{ _self.title(_context) }} {{ _self.header(_context) }} - +
{# close previous flex-table and reopen it after #} - {% include 'ChillMainBundle:Notification:_item_comments.html.twig' %} -
- {% endif %} -
{% else %} {{ _self.title(_context) }} diff --git a/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig index 15462d516..748142ab8 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig @@ -5,10 +5,7 @@ {% include 'ChillMainBundle:Notification:_list_item.html.twig' with { 'full_content': true, 'fold_item': true, - 'action_button': false, - 'with_folded_comments': true, - 'appendCommentForm': appendCommentForms[notification.id], - 'editedCommentForm': null, + 'action_button': true, } %}{# #} {% endfor %}