{% 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, 'title': attachment.getBestTitle(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 %}
{{ mention }} {% 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 actor = note.getActor() %} {% set nickname = actor.getNickname() %} {% set fullname = actor.getFullname() %} {% set actor_uri = actor.getUri() %} {% set actor_url = actor.getUrl() %} {% set mention = mention(actor) %} {% 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 %}
{% endmacro macro_note %} {% macro macro_note_minimal(note) %} {% set actor = note.getActor() %} {% set nickname = actor.getNickname() %} {% set fullname = actor.getFullname() %} {% set actor_uri = actor.getUri() %} {% set actor_url = actor.getUrl() %} {% set mention = mention(actor) %}
{{ block('note_sidebar') }}
{{ block('note_info') }}
{% endmacro macro_note_minimal %}