{% set nickname = note.getActorNickname() %}
{# TODO: this should link to the note's user profile? #} {# Microformat's h-card properties indicates a face icon is a "u-logo" #} {{ 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 %} {% if app.user %}
{% if have_user %} {% for current_action in get_note_actions(note) %} {{ form_start(current_action) }} {% if current_action.submit_favourite is defined %} {{ form_widget(current_action.submit_favourite) }} {% endif %} {% if current_action.submit_repeat is defined %} {{ form_widget(current_action.submit_repeat) }} {% endif %} {% if current_action.reply is defined %} {{ form_widget(current_action.reply) }} {% endif %} {{ form_end(current_action) }} {% endfor %} {% endif %}
{% endif %}
{% if replies is defined and replies is not empty %}
{% 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 %}
{% endif %} {% if reply_to is not empty %}
{% endif %}