{% load threadedcomments_tags %}{# This file is used by the unittests #}

{% for comment in comment_list|fill_tree|annotate_tree %}

{% ifchanged comment.parent_id %}{% else %}
    </li>
{% endifchanged %}

{% if not comment.open and not comment.close %}
    </li>
{% endif %}
    
{% if comment.open %}
    <ul>
{% endif %}

<li{% if comment.last %} class="last"{% endif %}>

{{ comment.tree_path }}{% if comment.added_path %} ADDED {% endif %}

{% for close in comment.close %}
    </li>
    </ul>
{% endfor %}

{% endfor %}
