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

{% trans "Share your thoughts" %}

{% if request.user.is_authenticated %} {% render_comment_form for self %} {% else %} {% trans "Log in to comment" %} {% endif %} {% else %}

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

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

{% trans "Your thoughts" %}

{% endif %}
{% for node in comment_list %} {% recursetree node %}
{% 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 %}
{% if node.is_removed %}
{% trans "This comment has been removed by the community. Please read our platform rules." %}
{% else %}

{{ node.comment|smarttruncatechars:100 }}

{% if node.comment.200 %} {% trans "Read More"%} {% endif %} {{node.submit_date|timesince}} {% trans "ago" %}
{% if not node.user|is_in_admin_group %} {% trans "Report" %} {% endif %} {% if node.parent == None %} {% trans "Reply"%} {% if do_not_link_replies or node.get_children.count == 0 %}

{{ node.get_children.count }} {% if node.get_children.count == 0 or node.get_children.count == 1 %} {% trans "Reply" %}{% else %}{% trans "Replies" %}{% endif %}

{% else %} {{ node.get_children.count }} {% if node.get_children.count == 0 or node.get_children.count == 1 %} {% trans "Reply" %} {% else %} {% trans "Replies" %} {% endif %} {% endif %} {% endif %}
{% endif %} {% if node.parent == None and node.get_children.count != 0 %}

{% trans "Recent Replies"%}

{% endif %}
{{ children }} {% endrecursetree %} {% endfor %} {% if comment_count > 2 %} {% trans "Read more comments" %} {% endif %}
{% endif %}