{% block note_actions %} {% if app.user or note_actions_hide is defined %}
  • {{ icon('kebab', 'icon icon-note-actions-extra') | raw }} {% trans %}Permalink{% endtrans %}
    {% for current_action in get_extra_note_actions(note) %} {{ current_action['title'] }} {% endfor %}
  • {% for current_action in get_note_actions(note) %}
  • {% endfor %}
    {% endif %} {% endblock note_actions %} {% block note_attachments %} {% if hide_attachments is not defined %} {% if note.getAttachments() is not empty %}
    {% for attachment in note.getAttachments() %} {% include 'cards/blocks/attachment.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 %}
    {% set paragraph_array = note.getRenderedSplit() %} {% for paragraph in paragraph_array %}

    {{ paragraph | raw }}

    {% endfor %}
    {% 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') }} {% trans %}in conversation{% endtrans %} {{ note.getModified() | ago }}
    {% endblock note_info %} {% macro mention_anchor(target) %} {{mention(target)}} {% endmacro mention_anchor %} {% block note_context %} {% set notification_targets = note.getNotificationTargets() %} {% set notification_targets_individuals = notification_targets|filter(nt => nt.isGroup() == false) %} {% set mention_individuals = [] %} {% for target in notification_targets_individuals %} {% set mention_individuals = mention_individuals|merge([_self.mention_anchor(target)]) %} {% endfor %} {% set notification_targets_groups = notification_targets|filter(nt => nt.isGroup()) %} {% set mention_groups = [] %} {% for target in notification_targets_groups %} {% set mention_groups = mention_groups|merge([_self.mention_anchor(target)]) %} {% endfor %} {% if notification_targets_individuals is not empty %} {% set mentions_anchors = mention_individuals|join(' ⃕ ') %} {% trans %}in reply to %mentions_anchors%{% endtrans %} {% endif %} {% if notification_targets_groups is not empty %} {% set mentions_anchors = mention_groups|join(', ', ' and ') %} {% trans %}in %mentions_anchors%{% endtrans %} {% endif %} {% endblock note_context %} {% block note_complementary %} {% set complementary_info_array = handle_event('AppendCardNote', { 'note': note, 'request': app.request }) %} {% if app.user is not null or complementary_info_array is not empty %} {% endif %} {% endblock note_complementary %}