{% extends 'stdgrid.html.twig' %} {% import '/cards/macros/note/factory.html.twig' as NoteFactory %} {% block title %}{% if page_title is defined %}{{ page_title | trans }}{% endif %}{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock stylesheets %} {% block body %} {% for block in handle_event('BeforeFeed', app.request) %} {{ block | raw }} {% endfor %} {% if notes is defined %}
{% set current_path = app.request.get('_route') %} {% if notes_feed_title is defined %} {{ notes_feed_title.getHtml() }} {% endif %}
{% if notes is not empty %} {# Backwards compatibility with hAtom 0.1 #}
{% for conversation in notes %} {% block current_note %} {% if conversation is instanceof('array') %} {% set args = { 'type': 'vanilla_full', 'note': conversation['note'], 'replies': conversation['replies'] | default, 'extra': { 'depth': 0 } } %} {{ NoteFactory.constructor(args) }} {# {% else %} {% set args = { 'type': 'vanilla_full', 'note': conversation, 'extra': { 'depth': 0 } } %} {{ NoteFactory.constructor(args) }}#} {% endif %} {% endblock current_note %} {% endfor %}
{% else %}
{% trans %}No notes here...{% endtrans %}
{% endif %} {% endif %} {% endblock body %}