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 817f7e6a7..02a02b4d0 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Notification/_list_item.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Notification/_list_item.html.twig @@ -61,17 +61,28 @@
{% if c.full_content is defined and c.full_content == true %} - {{ c.notification.message|chill_markdown_to_html }} + {% if c.notification.message is not empty %} + {{ c.notification.message|chill_markdown_to_html }} + {% else %} +

{{ 'Any comment'|trans }}

+ {% endif %} {% else %} - {{ c.notification.message|u.truncate(250, '…', false)|chill_markdown_to_html }} -

{{ 'Read more'|trans }}

+ {% if c.notification.message is not empty %} + {{ c.notification.message|u.truncate(250, '…', false)|chill_markdown_to_html }} +

{{ 'Read more'|trans }}

+ {% else %} +

{{ 'Any comment'|trans }}

+ {% endif %} {% endif %}
+{% endmacro %} + +{% macro actions(c) %} {% if c.action_button is not defined or c.action_button != false %}
- + {% if c.notification.comments|length > 0 %}
@@ -79,16 +90,16 @@
{% endif %} - +
- + {{ _self.content(_context) }} -
+ {{ _self.actions(_context) }} {% else %} {{ _self.title(_context) }} {{ _self.header(_context) }} {{ _self.content(_context) }} + {{ _self.actions(_context) }} {% endif %}