{% 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 %}
{{ node.body|markdown|reference|str|safe }}
{% if node.score <= vote_hide_threshold %}
{% trans id=node.id %}
This comment is hidden due to too much negative feedback.
Click here to view it.
{% endtrans %}
{% endif %}
{% with children=node.get_children() %}
{% if children %}
{{ loop(children) }}
{% endif %}
{% endwith %}
{% endfor %}
{% elif not comment_lock %}
{{ _('There are no comments at the moment.') }}
{% endif %}
{% if request.user.is_authenticated and comment_form and not comment_lock %}
{% block comment_submit_title %}
{{ _('New comment') }}
{% endblock %}
{% if is_new_user %}
{{ _('You need to have solved at least one problem before your voice can be heard.') }}
{% trans id=node.id %} This comment is hidden due to too much negative feedback. Click here to view it. {% endtrans %}
{% with children=node.get_children() %} {% if children %}
{{ loop(children) }}
{% endif %} {% endwith %} {% endfor %}