{% load ooi_extra %} {% if prop not in 'children,tree_meta' %} {{ prop }} {% if prop == 'id' %} {{ item }} {% elif prop == 'ooi_type' %} {{ item }} {% else %} {{ item }} {% endif %} {% elif prop == 'children' and item|length %} {% for listItem in item %} {% include "partials/elements/ooi_tree_table.html" with list=listItem current_position=current_position|add:'-r' %} {% endfor %} {% endif %}