{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %} {% extends 'themes/' + theme() + '/base.html' %} {% else %} {% extends "base.html" %} {% endif %} %} {% from 'bootstrap5/form.html' import render_form %} {% set active_child = 'list_topics' %} {% block app_content %} {% if len(topics) > 0 %} {% macro render_topic(topic, depth) %} {{ '--' * depth }} {% if depth == 0 %}{% endif %} {{ topic['topic'].name }} {% if depth == 0 %}{% endif %} {% if topic['children'] %} {% for topic in topic['children'] %} {{ render_topic(topic, depth + 1)|safe }} {% endfor %} {% endif %} {% endmacro %}

{{ _('Choose a topic') }}

{% for topic in topics %} {{ render_topic(topic, 0)|safe }} {% endfor %}
{% else %}

{{ _('There are no communities yet.') }}

{% endif %}

{{ _('Explore communities') }}

{% endblock %}