From 122a2fa36aa8094c5232eead57c6109cae59ca7c Mon Sep 17 00:00:00 2001 From: SXP-Simon Date: Sat, 29 Nov 2025 00:04:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(scrapbook):=20=E6=8F=90=E5=8F=96=E6=8E=92?= =?UTF-8?q?=E7=89=88=EF=BC=8C=E7=BA=A0=E6=AD=A3=E5=85=B3=E9=97=AD=E5=88=86?= =?UTF-8?q?=E6=9E=90=E5=88=86=E5=8C=BA=E4=BD=86=E6=98=AF=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=B2=A1=E6=9C=89=E5=8E=BB=E9=99=A4=E7=9A=84?= =?UTF-8?q?=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/scrapbook/image_template.html | 41 ++------------- .../templates/scrapbook/pdf_template.html | 41 ++------------- .../templates/scrapbook/quote_item.html | 30 +++++++---- .../templates/scrapbook/topic_item.html | 43 ++++++++++----- .../templates/scrapbook/user_title_item.html | 52 ++++++++++++------- 5 files changed, 87 insertions(+), 120 deletions(-) diff --git a/src/reports/templates/scrapbook/image_template.html b/src/reports/templates/scrapbook/image_template.html index 3b2da8f..34263bc 100644 --- a/src/reports/templates/scrapbook/image_template.html +++ b/src/reports/templates/scrapbook/image_template.html @@ -785,46 +785,11 @@ - -
-
-
-
-
-
-
- - - - 今日话题 Topics -
- {{topics_html}} -
+ {{topics_html}} - -
-
- - - - 群友画像 Portraits -
-
- {{titles_html}} -
-
+ {{titles_html}} - -
-
- - - - 群贤毕至 Bible Quotes -
- {{quotes_html}} -
+ {{quotes_html}} diff --git a/src/reports/templates/scrapbook/pdf_template.html b/src/reports/templates/scrapbook/pdf_template.html index 3b2da8f..34263bc 100644 --- a/src/reports/templates/scrapbook/pdf_template.html +++ b/src/reports/templates/scrapbook/pdf_template.html @@ -785,46 +785,11 @@ - -
-
-
-
-
-
-
- - - - 今日话题 Topics -
- {{topics_html}} -
+ {{topics_html}} - -
-
- - - - 群友画像 Portraits -
-
- {{titles_html}} -
-
+ {{titles_html}} - -
-
- - - - 群贤毕至 Bible Quotes -
- {{quotes_html}} -
+ {{quotes_html}} diff --git a/src/reports/templates/scrapbook/quote_item.html b/src/reports/templates/scrapbook/quote_item.html index 0e1a223..79d7529 100644 --- a/src/reports/templates/scrapbook/quote_item.html +++ b/src/reports/templates/scrapbook/quote_item.html @@ -1,13 +1,23 @@ -{% for quote in quotes %} -
-
-
"
-
{{ quote.content }}
-
— {{ quote.sender }}
+{% if quotes %} +
+
+ + + + 群贤毕至 Bible Quotes
-
- 🤣👉 AI 锐评: - {{ quote.reason }} + {% for quote in quotes %} +
+
+
"
+
{{ quote.content }}
+
— {{ quote.sender }}
+
+
+ 🤣👉 AI 锐评: + {{ quote.reason }} +
+ {% endfor %}
-{% endfor %} \ No newline at end of file +{% endif %} \ No newline at end of file diff --git a/src/reports/templates/scrapbook/topic_item.html b/src/reports/templates/scrapbook/topic_item.html index a096609..cc71f47 100644 --- a/src/reports/templates/scrapbook/topic_item.html +++ b/src/reports/templates/scrapbook/topic_item.html @@ -1,17 +1,32 @@ -{% for topic in topics %} -
-
-
+{% if topics %} +
+
+
+
+
-
-
- {{ topic.topic.topic }} - #{{ "%02d"|format(topic.index) }} -
-
- 🙋‍♀️ 参与者: {{ topic.contributors }} -
-
{{ topic.topic.detail }}
+
+ + + + 今日话题 Topics
+ {% for topic in topics %} +
+
+
+
+
+
+ {{ topic.topic.topic }} + #{{ "%02d"|format(topic.index) }} +
+
+ 🙋‍♀️ 参与者: {{ topic.contributors }} +
+
{{ topic.topic.detail }}
+
+
+ {% endfor %}
-{% endfor %} \ No newline at end of file +{% endif %} \ No newline at end of file diff --git a/src/reports/templates/scrapbook/user_title_item.html b/src/reports/templates/scrapbook/user_title_item.html index da25f33..a63a090 100644 --- a/src/reports/templates/scrapbook/user_title_item.html +++ b/src/reports/templates/scrapbook/user_title_item.html @@ -1,24 +1,36 @@ -{% for title in titles %} -
-
-
-
- {% if title.avatar_data %} - 头像 - {% else %} - - {% endif %} -
-
-
{{ title.name }}
-
- {{ title.title }} - {{ title.mbti }} +{% if titles %} +
+
+ + + + 群友画像 Portraits +
+
+ {% for title in titles %} +
+
+
+
+ {% if title.avatar_data %} + 头像 + {% else %} + + {% endif %} +
+
+
{{ title.name }}
+
+ {{ title.title }} + {{ title.mbti }} +
+
+
+
+ {{ title.reason }}
-
-
- {{ title.reason }} + {% endfor %}
-{% endfor %} \ No newline at end of file +{% endif %} \ No newline at end of file