-
- {% include c.data.template with c.data.template_data %}
-
+ {% if c.data is defined %}
+
+ {% include c.data.template with c.data.template_data %}
+
+ {% endif %}
@@ -107,15 +109,25 @@
+
{{ _self.title(_context) }}
{{ _self.header(_context) }}
+
+
{{ _self.content(_context) }}
+
+ {% if with_folded_comments is defined and with_folded_comments != false %}
+
{# 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 ac1daad6f..a7156c5dd 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
@@ -1,8 +1,24 @@
+
{{ 'notification.Notification'|trans }}
+
+
+ {% for notification in notifications %}
+ {% include 'ChillMainBundle:Notification:_list_item.html.twig' with {
+ 'action_button': false,
+ 'full_content': true,
+ 'fold_item': true,
+ } %}{#
+ DISABLED
+ 'with_folded_comments': true
+ #}
+ {% endfor %}
+
+
+{#
{{ 'notification.Sent'|trans }}
- {# TODO pagination or limit #}
+
{% for notification in notifications %}
@@ -13,7 +29,7 @@
{{ notification.date|format_datetime('short','short') }}
- {# Vue component #}
+
{% endfor %}
+#}
diff --git a/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig
index c8834c07c..cce7ebd64 100644
--- a/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig
+++ b/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig
@@ -26,7 +26,8 @@
'template_data': handler.getTemplateData(notification)
},
'action_button': false,
- 'full_content': true
+ 'full_content': true,
+ 'fold_item': false
} %}