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

{{ _('Add topic') }}{{ _('Topics') }}

{% for topic in topics %} {{ render_topic(topic, 0)|safe }} {% endfor %}
Name # Communities Actions

{% include 'admin/_nav.html' %}

{% endblock %}