{% if template is empty %}
{{ entry.getTitle() }}
{% endif %}
{% if template is empty or not useTemplate %} {% for field in fields %}
{% if fieldValues[field.getId()] is defined %} {{ fieldValues[field.getId()]|raw }} {% endif %}
{% if not loop.last %}
{% endif %} {% endfor %} {% else %} {{ template|raw }} {% endif %} {% if withMeta %}
{% if entry.getPublicationDate() is not empty %} {{ 'publication_date'|trans({}, 'clacoform') }} : {{ entry.getPublicationDate()|date('d/m/Y') }} - {% endif %} {% if entry.getEditionDate() is not empty %} {{ 'last_modification'|trans({}, 'platform') }} : {{ entry.getEditionDate()|date('d/m/Y') }} - {% endif %} {{ 'author'|trans({}, 'platform') }} : {% if entry.getUser() is not empty %} {{ entry.getUser().getFirstName() }} {{ entry.getUser().getLastName() }} {% else %} {{ 'anonymous'|trans({}, 'platform') }} {% endif %}
{% endif %} {% if canViewComments and comments|length > 0 %}

{{ 'comments'|trans({}, 'clacoform') }}

{% for comment in comments %}
{{ comment.content|raw }}

{{ 'author'|trans({}, 'platform') }} : {% if comment.getUser() is not empty %} {{ comment.getUser().getFirstName() }} {{ comment.getUser().getLastName() }} {% else %} {{ 'anonymous'|trans({}, 'platform') }} {% endif %} - {{ 'publication_date'|trans({}, 'clacoform') }} : {{ comment.getCreationDate()|date('d/m/Y H:i:s') }} {% if not loop.last %}
{% endif %} {% endfor %} {% endif %}