{% extends 'stdgrid.html.twig' %} {% import '/cards/macros/note.html.twig' as noteView %} {% 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 page_title is defined %} {% if current_path starts with 'feed_' %}

{{ page_title | trans }}

{% endif %} {% else %} {% if current_path starts with 'search' %}

{{ 'Notes found' | trans }}

{% else %}

{{ 'Notes' | trans }}

{% endif %} {% 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 here...{% endtrans %}
{% endif %} {% endif %} {% endblock body %}