{% load molo_commenting_tags gem_tags %}
  <h5 class="comments__alias comments__alias-author">
    {% if node.user.is_staff %}
    {% if settings.gem.GemSettings.moderator_name %}{{settings.gem.GemSettings.moderator_name}}
    {% else %}{% trans "Big Sister" %}{% endif %} - <span class="comments__staff">{% trans "Moderator" %}</span>
    {% elif node.user_name.lower == 'anonymous' %}{% trans "Anonymous" %}
    {% else %}{% if not node.user.profile.alias %}{% trans "Anonymous" %}
    {% else %}{{node.user.profile.alias}}{% endif %}{% endif %}
  </h5>
  <h6 class="comments__publish-date">
    {{node.submit_date|timesince}} {% trans "ago" %}
  </h6>
  {% if node.is_removed %}
    <p class="comments__description">
      {% trans "This comment has been removed by the community. Please read our platform rules" %}.
    </p>
  {% else %}
    {% if truncate_comment %}
      <p class="comments__content">{{ node.comment|smarttruncatechars:115 }}</p>
      {% if node.comment.200 %}
      <a href="{% url 'molo.commenting:more-comments' self.pk %}" class="call-to-action__item call-to-action__item--reveal">
        {% trans "Read more" %}
      </a>
      {% endif %}
    {% else %}
      <p class="comments__content">{{ node.comment }}</p>
    {% endif %}
    <div class="comments__reply-meta">
      {% if not node.user|is_in_admin_group %}
        <a href="{% url 'report_comment' node.pk %}" class="comments__feedback comments__feedback--report">
          {% trans "Report" %}
        </a>
      {% endif %}
      {% if node.parent == None %}
          <a href="{% url 'molo.commenting:molo-comments-reply' node.pk %}#comment-block" class="comments__feedback comments__feedback--reply">
            {% trans "reply" %}
          </a>
          {% if do_not_link_replies or node.get_children.count == 0 %}
            <p class="comments__feedback comments__feedback--reply-count">
              {{ node.get_children.count }}
              {% if node.get_children.count == 0 or node.get_children.count == 1 %} {% trans "reply" %}{% else %}{% trans "replies" %}
              {% endif %}
            </p>
          {% else %}
            <a href="{% url 'molo.commenting:molo-comments-reply' node.pk %}#comment-block" class="comments__feedback comments__feedback--reply">
              {{ node.get_children.count }}
              {% if node.get_children.count == 0 or node.get_children.count == 1 %} {% trans "reply" %}{% else %}{% trans "replies" %}{% endif %}
            </a>
          {% endif %}
      {% endif %}
    </div>
  {% endif %}
  {% if node.parent == None and node.get_children.count != 0 %}
    <h3 class="comments__replies-title">
      {% trans "Recent replies" %}
    </h3>
  {% endif %}
