From a4b2a696898aabfc6ed983f653cc7a7dbaec81da Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 8 Jul 2022 14:19:35 +0200 Subject: [PATCH] make "more comments" button work on the whole chain --- files/templates/comments.html | 63 +++++++++++++++-------------------- 1 file changed, 26 insertions(+), 37 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index de9b02665..77838d91d 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -67,48 +67,37 @@ {% if c.is_blocking or (c.is_banned or c.deleted_utc) and not (v and v.admin_level > 1) and not (v and v.id==c.author_id) %} -
- +
+ -
+
-
+
- + +
+ + {% if render_replies %} + {% if level<9 or request.path == '/notifications' or request.headers.get("xhr") %} +
+ {% for reply in replies %} + {{single_comment(reply, level=level+1)}} + {% endfor %}
- - {% if render_replies %} - {% if level<9 %} -
- {% set standalone=False %} - {% for reply in replies %} - {{single_comment(reply, level=level+1)}} - {% endfor %} -
- {% elif replies and "notifications" in request.path %} -
- {% set standalone=False %} - {% for reply in replies %} - {{single_comment(reply, level=level+1)}} - {% endfor %} -
- - {% elif replies %} -
- - More comments -
+ {% elif replies %} +
+ + More comments +
+ {% endif %} {% endif %} - {% endif %} -
-
+
+
{% else %} @@ -594,7 +583,7 @@ {% if render_replies %} - {% if level<9 or request.path == '/notifications' %} + {% if level<9 or request.path == '/notifications' or request.headers.get("xhr") %}
{% for reply in replies %} {{single_comment(reply, level=level+1)}}