{% set nickname = note.getActorNickname() %} {{ nickname }}'s avatar {{ nickname }} {% set reply_to = note.getReplyToNickname() %} {% if reply_to is not null and not skip_reply_to is defined %} {% trans with {'%name%': reply_to}%} in reply to %name% {% endtrans %} {% endif %}
{{ note.getContent() }}
{% for test in get_note_test(note) %} {% include '/'~ test.name ~ '/view.html.twig' with {'vars': test.vars} only %} {% endfor %}
{% for attachment in note.getAttachments() %} {% if attachment.mimetype starts with 'image/' %}
{{ attachment.getTitle() }} {{ attachment.getTitle() }}
{% elseif attachment.mimetype starts with 'video/' %}
{% else %}
{{ attachment.getTitle() }}
{% endif %} {% endfor %}
{% if have_user %} {% for act in get_note_actions(note) %} {{ form(act) }} {% endfor %} {% endif %}
{% for conversation in replies %} {% include '/note/view.html.twig' with {'note': conversation['note'], 'skip_reply_to': true, 'have_user': have_user, 'replies': conversation['replies']} only %} {% endfor %}