{% block note_actions %} {% if app.user or note_actions_hide is defined %}
{% for current_action in get_note_actions(note) %} {% endfor %}
{% endif %} {% endblock note_actions %} {% block note_reply_to %} {% set reply_to = note.getReplyToNickname()%} {% if reply_to is not null %} {% trans with {'%name%': reply_to} %} in reply to %name% {% endtrans %} {% endif %} {% endblock note_reply_to %} {% block note_replies %} {% if replies is defined and replies is not empty %}
{% for conversation in replies %} {{ _self.macro_note(conversation['note'], conversation['replies']) }}
{% endfor %}
{% endif %} {% endblock note_replies %} {% block note_attachments %} {% if hide_attachments is not defined %} {% if note.getAttachments() is not empty %}
{% for attachment in note.getAttachments() %} {% include '/cards/attachments/view.html.twig' with {'attachment': attachment, 'note': note} only%} {% endfor %}
{% endif %} {% endif %} {% endblock note_attachments %} {% block note_links %} {% if note.getLinks() is not empty %} {% endif %} {% endblock note_links %} {% block note_text %}
{{ note.getRendered() | raw }}
{% endblock note_text %} {% block note_author %} {# Microformat's h-card properties indicates a face icon is a "u-logo" #} {% if fullname is not null %} {{ fullname }} {% else %} {{ nickname }} {% endif %} {{ nickname }} {% endblock note_author %} {% block note_sidebar %} {% endblock note_sidebar %} {% macro macro_note(note, replies) %} {% set nickname = note.getActorNickname() %} {% set fullname = note.getActorFullname() %} {% set actor = note.getActor() %} {% set actor_url = actor.getUrl() %}
{{ block('note_sidebar') }}
{{ block('note_author') }} {{ block('note_actions') }}
{% for block in handle_event('AppendCardNote', {'note': note, 'actor': note.getActor() }) %} {% endfor %} {{ block('note_replies') }}
{% endmacro macro_note %} {% macro macro_note_minimal(note) %} {% set nickname = note.getActorNickname() %} {% set fullname = note.getActorFullname() %} {% set actor_url = note.getActor().getUrl() %}
{{ block('note_sidebar') }}
{{ block('note_author') }}
{% endmacro macro_note_minimal %}