{% load l10n %} {% load i18n %} {% load comments %} {% load comments_xtd %} {% for item in comments %}
{{ item.comment.submit_date }} - {% if item.comment.url and not item.comment.is_removed %}{% endif %}{{ item.comment.user.username }}{% if item.comment.url %}{% endif %}{% if item.comment.user and item.comment.user|has_permission:"django_comments.can_moderate" %} {% trans "moderator" %}{% endif %}  
{% if not item.comment.is_removed %} {% if perms.comments.can_moderate %} {% if item.flagged_count %} {{ item.flagged_count }} {% endif %} {% endif %} {% if allow_flagging and item.flagged %} {% elif allow_flagging %} {% endif %} {% if perms.comments.can_moderate %} {% endif %} {% endif %}
{% if item.comment.is_removed %}

{% trans "This comment has been removed." %}

{% else %}
{% include "includes/django_comments_xtd/comment_content.html" with content=item.comment.comment %}
{% endif %}
{% if not item.comment.is_removed and item.children %} {% render_xtdcomment_tree with comments=item.children %} {% endif %}
{% endfor %}