From 56df92c497850638e12949fe2f3997973200d08a Mon Sep 17 00:00:00 2001 From: kek7198 Date: Wed, 24 Nov 2021 14:34:23 -0600 Subject: [PATCH] fix --- files/templates/comments.html | 430 ++++++++++------------------------ 1 file changed, 123 insertions(+), 307 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index d6862d09a..9b08c327b 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -65,10 +65,10 @@ function poll_vote(cid, parentid) { {% if v %} for(let el of document.getElementsByClassName('presult-'+parentid)) { - el.classList.remove('d-none'); + el.classList.remove('hidden'); } for(let el of document.getElementsByClassName('presult')) { - el.classList.remove('d-none'); + el.classList.remove('hidden'); } var type = document.getElementById(cid).checked; var scoretext = document.getElementById('poll-' + cid); @@ -184,7 +184,7 @@
- +
@@ -208,13 +208,13 @@ {% endfor %}
{% elif "notifications" in request.path %} -
+ -
+ {% elif replies %} @@ -268,14 +268,27 @@
{% endif %} -
+
- -
+ + +
+ {% if not c.parent_comment_id or standalone %} + + {% else %} + + {% endif %} + {% if replies %} +
+ {% endif %} +
+ +
{% if c.active_flags %} -
+ {% if c.parent_submission %} - + {% if v and v.id==c.author_id %} - + {% include "/comments/CommentEditForm.html" %} {% endif %} -
-
    - - {% if v and request.path.startswith('/@') and v.admin_level == 0%} - {% if voted==1 %} -
  • - {% endif %} - {% elif v %} - -
  • - - {% else %} -
  • - - {% endif %} - -
  • - {{score}} -
  • - - {% if v and request.path.startswith('/@') and v.admin_level == 0 %} - {% if voted==-1 %} -
  • - {% endif %} - {% elif v %} -
  • - - {% else %} - -
  • - - {% endif %} - -
  • Votes
  • - - {% if v %} - Give Award - - Unsave - - Save - - Reply - {% endif %} - - Context - Copy link - {% if v %} - Report - {% endif %} - - - {% if v and c.parent_submission and c.author_id==v.id %} - - Edit - - {% if c.deleted_utc > 0 %} - Undelete - {% else %} - Delete - {% endif %} - - {% endif %} - {% if v and v.admin_level > 1 and v.id==c.author_id %} - Undistinguish - Distinguish - {% endif %} - - {% if v and not v.id==c.author_id%} - Unblock user - - Are you sure? - - Block user - {% endif %} - - {% if v and c.post and (v.admin_level > 1 or v.id == c.post.author_id) %} - Unpin - - Pin - {% endif %} - - - {% if v and v.admin_level > 1 %} - {% if "/reported/" in request.path %} - Approve - Remove - {% else %} - Approve - Remove - {% endif %} - {% endif %} - - {% if v and c.parent_submission and (c.author_id==v.id or v.admin_level > 0) %} - Unmark +18 - Mark +18 - {% endif %} - - {% if v and v.admin_level > 1 and v.id != c.author_id %} - Unban user - Ban user - {% endif %} - - {% if v and v.admin_level > 1 and c.oauth_app %} - API App - {% endif %} - - - {% if v and request.path.startswith('/@') and v.admin_level == 0 %} - {% if voted==1 %}
  • {% endif %} - {% elif v %} -
  • - {% else %} -
  • - {% endif %} -
  • {{score}}
  • - {% if v and request.path.startswith('/@') and v.admin_level == 0 %} - {% if voted==-1 %} -
  • - {% endif %} - {% elif v %} -
  • - {% else %} -
  • - {% endif %} -
+ +
+ {% include "/comments/CommentActions.html" %}
{% endif %} +
-
- + - {% if render_replies %} {% if level<10 %}
@@ -568,13 +470,13 @@ {% endfor %}
{% elif "notifications" in request.path %} -
+ -
+ {% elif replies %} @@ -586,93 +488,7 @@
- + {% include "/modals/ModalCommentActions.html" %}
@@ -740,7 +556,7 @@
-
+