{% block note_actions %} {% if app.user or note_actions_hide is defined %}
{% endif %} {% endblock note_actions %} {% block note_replies %} {% if replies is defined and replies is not empty %}
{{ 'Replies to ' | trans }}{{ nickname }} {% 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 %} {% block note_info %}
{{ block('note_author') }} {{ 'in conversation' | trans }} {{ note.getModified() | ago }} {{ block('note_actions') }}
{% endblock note_info %} {% macro macro_note(note, replies) %} {% set nickname = note.getActorNickname() %} {% set fullname = note.getActorFullname() %} {% set actor = note.getActor() %} {% set actor_url = actor.getUrl() %} {% set note_language = note.getNoteLanguageShortDisplay() %}
{{ block('note_sidebar') }}
{{ block('note_info') }} {{ block('note_replies') }} {% for block in handle_event('AppendCardNote', {'note': note, 'actor': note.getActor() }) %} {% endfor %} {# {% if note_language is defined and note_language is not empty %}#} {#
{{ note_language }}
#} {# {% endif %}#}
{% 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 %}