{% load comments mptt_tags molo_commenting_tags gem_tags %} {% if self.is_commenting_enabled %}

{% trans "Post a comment" %}

{% if self.allow_commenting %} {% if request.user.is_authenticated %} {% render_comment_form for self %} {% else %}

{% trans "To post a comment you must log in or create an account" %}.

{% endif %} {% else %}

{% trans "Commenting on this article is currently disabled" %}.

{% endif %}
{% get_comment_count for self as comment_count %} {% if comment_count > 0 %}
{% get_molo_comments for self as comment_list limit 2 child_limit 2 %}

{% if comment_count > 1 %} {% trans "Comments" %} {% else %} {% trans "Comment" %} {% endif %}

{% for node in comment_list %} {% recursetree node %}
{% if node.parent %}
{% endif %}
{% if node.user.is_staff %} {% if settings.gem.GemSettings.moderator_name %} {{settings.gem.GemSettings.moderator_name}} {% else %} {% trans "Big Sister" %} {% endif %} - {% trans "Moderator" %} {% elif node.user_name.lower == 'anonymous' %} {% trans "Anonymous" %} {% else %} {% if not node.user.profile.alias %} {% trans "Anonymous" %} {% else %} {{node.user.profile.alias}} {% endif %} {% endif %}
{{node.submit_date|timesince}} {% trans "ago" %}
{% if node.is_removed %}

{% blocktrans %} This comment has been removed by the community. Please read our platform rules {% endblocktrans %}.

{% else %}

{{ node.comment|smarttruncatechars:115 }}

{% if node.comment.200 %} {% trans "See more" %} {% endif %}
{% if not node.user|is_in_admin_group %} {% endif %} {% if node.parent == None %} {% if do_not_link_replies or node.get_children.count == 0 %} {% else %} {% endif %} {% endif %}
{% endif %} {% if node.parent == None and node.get_children.count != 0 %}

{% trans "Recent replies" %}

{% endif %} {{ children }} {% if node.parent %}
{% endif %}
{% endrecursetree %} {% endfor %}
{% if comment_count > 3 %} {% endif %}
{% endif %}
{% endif %}