inline commenting - explanatory comments

This commit is contained in:
rimu 2025-01-17 16:02:47 +13:00
parent fada29b70e
commit d8c4826ff6
2 changed files with 5 additions and 0 deletions

View file

@ -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)

View file

@ -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) -%}
<span class="render_username">
{% if user.deleted -%}