{% extends "@ChillMain/layout.html.twig" %} {% block title 'notification.show notification from %sender%'|trans({ '%sender%': notification.sender|chill_entity_render_string })~' '~notification.title %} {% block js %} {{ parent() }} {{ encore_entry_script_tags('mod_notification_toggle_read_status') }} {% endblock %} {% block css %} {{ parent() }} {{ encore_entry_link_tags('mod_notification_toggle_read_status') }} {% endblock %} {% block content %}

{{ notification.title }}

{% include handler.getTemplate(notification) with handler.getTemplateData(notification) %}
{# à remplacer par un commentEmbeddable #} {{ notification.message|chill_markdown_to_html }}
{% if notification.comments|length > 0 %} {% for comment in notification.comments %} {% if editedCommentForm is null or editedCommentId != comment.id %}
{{ comment.content|chill_markdown_to_html }}
{% if is_granted('CHILL_MAIN_NOTIFICATION_COMMENT_EDIT', comment) %} {% endif %}
{% else %}
{{ form_start(editedCommentForm) }} {{ form_widget(editedCommentForm) }} {{ form_end(editedCommentForm) }}
{% endif %} {% endfor %} {% endif %} {% if appendCommentForm is not null %}
{{ form_start(appendCommentForm) }} {{ form_widget(appendCommentForm) }} {{ form_end(appendCommentForm) }}
{% endif %}
{% endblock content %}