From e04a4eff55a4829ce67ae7a24d1e739ac544c15b Mon Sep 17 00:00:00 2001 From: John Xina Date: Fri, 14 Jul 2023 10:06:58 +0800 Subject: [PATCH] user show_name to avoid blank name --- templates/bar.html | 2 +- templates/thread.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/bar.html b/templates/bar.html index a999145..e0ab08c 100644 --- a/templates/bar.html +++ b/templates/bar.html @@ -52,7 +52,7 @@ {% endif %}
-
🧑{{ t.user.user_name }}
+
🧑{{ t.user.show_name }}
diff --git a/templates/thread.html b/templates/thread.html index 3b88050..3ab2f02 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -32,7 +32,7 @@
- {{ p.user.user_name }} + {{ p.user.show_name }} {% if p.is_thread_author %} 楼主 {% endif %} @@ -49,7 +49,7 @@
{{ comment.contents|translate(comment.reply_to_id)|safe }}