From b185ecfe817ce40d24b6e7be95715bef6e3c4d97 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 4 Dec 2025 18:29:41 +0000 Subject: [PATCH] refactor: Align non-JS comments page structure and style Co-authored-by: aider (gemini/gemini-2.5-pro) --- webclient/public/index.html | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/webclient/public/index.html b/webclient/public/index.html index 3e8c791..ec14c58 100644 --- a/webclient/public/index.html +++ b/webclient/public/index.html @@ -52,9 +52,17 @@

{{ story.title }}

-
- Source: {{ url }} -
+ + {% if show_comments %} + + {% else %} +
+ Source: {{ url }} +
+ {% endif %} +
{{ story.score }} points by {{ story.author }} @@ -68,9 +76,13 @@
{{ story.text | safe }}
{% elif show_comments %} {% macro render_comment(comment, level) %} -
- -
{{ comment.text | safe }}
+
+
+

+ {% if comment.author == story.author %}[OP] {% endif %}{{ comment.author or '[Deleted]' }} +

+
+
{{ (comment.text | safe) if comment.text else '

[Empty / deleted comment]

' }}
{% for reply in comment.comments %} {{ render_comment(reply, level + 1) }} {% endfor %}