{{ node.name }} {{ node.count }} {% if report.links %} {{ node.link.label }} {% endif %} {% if node.children %} {% for ch in node.children %} {% with parent=node.uid node=ch level=level|add:1 template_name="assets/report_tree.html" %} {% include template_name %} {% endwith %} {% endfor %} {% endif %}