{% extends 'stdgrid.html.twig' %} {% import '/cards/macros/note.html.twig' as noteView %} {% set nickname = nickname|escape %} {% block title %}{{ nickname }}{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock stylesheets %} {% block body %} {% if actor is defined and actor is not null %} {% block profile_view %} {% include 'cards/blocks/profile.html.twig' with { 'actor': actor } only %} {% endblock profile_view %} {% if notes is defined %}
{% if page_title is defined %}

{{ page_title | trans }}

{% else %}

{{ 'Notes' | trans }}

{% endif %}
{% if notes is not empty %} {# Backwards compatibility with hAtom 0.1 #}
{% for conversation in notes %} {% block current_note %} {% if conversation is instanceof('array') %} {{ noteView.note_vanilla(conversation['note'], conversation['replies']) }} {% else %} {{ noteView.note_vanilla(conversation) }} {% endif %}
{% endblock current_note %} {% endfor %}
{% else %}
{% trans %}No notes yet...{% endtrans %}
{% endif %}
{% endif %} {% endif %} {% endblock body %}