{{ note.getContent() }}
{% for attachment in note.getAttachments() %}
{% if attachment.mimetype starts with 'image/' %}
{{ attachment.getTitle() }}
{% elseif attachment.mimetype starts with 'video/' %}
{% else %}
{{ attachment.getTitle() }}
{% endif %}
{% endfor %}
{% for reply in note.getReplies() %}
{% include '/note/view.html.twig' with {'note': reply} only %}
{% endfor %}