From d8c4826ff6cb27a10a240854833ced2e1e35c134 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 17 Jan 2025 16:02:47 +1300 Subject: [PATCH] inline commenting - explanatory comments --- app/templates/post/_post_reply_teaser.html | 3 +++ app/templates/post/add_reply_inline_result.html | 2 ++ 2 files changed, 5 insertions(+) diff --git a/app/templates/post/_post_reply_teaser.html b/app/templates/post/_post_reply_teaser.html index 6b18f020..69790319 100644 --- a/app/templates/post/_post_reply_teaser.html +++ b/app/templates/post/_post_reply_teaser.html @@ -4,6 +4,9 @@ no_collapse: Don't collapse for admin and moderator views show_deleted: Show deleted content (for admin views) children: replies to this reply + + NB: there is a clone of this file, add_reply_inline_result.html which is used for rendering the result of the ajax call + to create a new comment - that file needs to be kept in sync with this one. #} {% if current_user.is_authenticated -%} {% set collapsed = ((post_reply.score <= current_user.reply_collapse_threshold) or post_reply.deleted) diff --git a/app/templates/post/add_reply_inline_result.html b/app/templates/post/add_reply_inline_result.html index 3020065c..d699c91f 100644 --- a/app/templates/post/add_reply_inline_result.html +++ b/app/templates/post/add_reply_inline_result.html @@ -1,3 +1,5 @@ +{# This file is similar to _post_reply_teaser.html except it includes the render_username macro and removes + a few things that aren't needed on brand new comments #} {% macro render_username(user, add_domain=True, htmx_redirect_back_to=None) -%} {% if user.deleted -%}