{% extends 'stdgrid.html.twig' %} {% import '/cards/note/view.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/profile/view.html.twig' with { 'actor': actor } only %} {% endblock profile_view %}
{% if notes is defined and notes is not empty %} {% for conversation in notes %} {% block current_note %} {% if conversation is instanceof('array') %} {{ noteView.macro_note(conversation['note'], conversation['replies']) }} {% else %} {{ noteView.macro_note(conversation) }} {% endif %}
{% endblock current_note %} {% endfor %} {% else %}

{% trans %}No notes here.{% endtrans %}

{% endif %}
{% else %}

{% trans with { '%group%': nickname } %}The group %group% doesn't exist.{% endtrans %}

{% if create_form is defined and create_form is not null %}

{% trans %}Would you like to create it?{% endtrans %}

{{ form(create_form) }} {% endif %}
{% endif %} {% endblock body %}