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