diff --git a/files/templates/comments.html b/files/templates/comments.html index 456b2bb59..abe3d45da 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -1,7 +1,34 @@ + {% if v %} {% include "award_modal.html" %} + {% endif %} @@ -9,11 +36,110 @@ {% endif %} + +{% include "expanded_image_modal.html" %} + + + {% macro single_comment(c, level=1) %} +{% if p and not (v and v.id==c.author_id) and (not v or v.highlightcomments) %} + +{% endif %} + + + + + {% set ups=c.upvotes %} {% set downs=c.downvotes %} {% set score=ups-downs %} @@ -45,7 +171,7 @@ {% if render_replies %} - {% if level<5 %} + {% if level<10 %}
{% set standalone=False %} {% for reply in replies %} @@ -144,7 +270,109 @@
+ {% if c.active_flags %} + {% if c.parent_submission %} + + {% if v and v.id==c.author_id %} + {% include "/comments/CommentEditForm.html" %} + {% endif %} + +
+ {% include "/comments/CommentActions.html" %} +
+ {% endif %}
+ + {% if render_replies %} - {% if level<5 %} + {% if level<10 %}
{% for reply in replies %} {{single_comment(reply, level=level+1)}} @@ -222,6 +487,40 @@ {% endfor %} +{% if v %} + {% include "gif_modal.html" %} + {% include "emoji_modal.html" %} + {% if v.admin_level > 1 %} + {% include "ban_modal.html" %} + {% endif %} + + + + {% include "/modals/ModalReportComment.html" %} +{% endif %}