{% set logged_in = request.user.is_authenticated %}
{% set profile = request.profile if logged_in else None %}
{% for node in mptt_tree(comment_list) recursive %}
{% if logged_in %}
{% else %}
{% endif %}
{{ node.score }}
{% if logged_in %}
{% else %}
{% endif %}
{% with author=node.author, user=node.author.user %}
{% endwith %}
{{ link_user(node.author) }}
{{ relative_time(node.time, abs=_('commented on {time}'), rel=_('commented {time}')) }}
{% if node.revisions > 1 %}
←
{% if node.revisions > 2 %}
{% trans edits=node.revisions - 1 %}edit {{ edits }}{% endtrans %}
{% else %}
{{ _('edited') }}
{% endif %}
→
{% else %}
{% endif %}
{% if logged_in and not comment_lock %}
{% set can_edit = node.author.id == profile.id and not profile.mute %}
{% if can_edit %}
{% else %}
{% endif %}
{% if perms.judge.change_comment %}
{% if can_edit %}
{% else %}
{% endif %}
{% endif %}
{% endif %}
{% trans id=node.id %} This comment is hidden due to too much negative feedback. Click here to view it. {% endtrans %}
{{ loop(children) }}
{% endif %} {% endwith %} {% endfor %}