fix(simple): 提取排版,纠正关闭分析分区但是基础样式没有去除的 bug

This commit is contained in:
SXP-Simon
2025-11-29 00:07:14 +08:00
parent 122a2fa36a
commit 23ca2f9ade
5 changed files with 42 additions and 46 deletions
@@ -40,20 +40,11 @@
{{hourly_chart_html}}
</div>
<div class="section">
<h2>热门话题</h2>
{{topics_html}}
</div>
{{topics_html}}
<div class="section">
<h2>群友称号</h2>
{{titles_html}}
</div>
{{titles_html}}
<div class="section">
<h2>群圣经</h2>
{{quotes_html}}
</div>
{{quotes_html}}
<div class="footer">
Generated by AstrBot | {{current_datetime}}
+3 -12
View File
@@ -40,20 +40,11 @@
{{hourly_chart_html}}
</div>
<div class="section">
<h2>热门话题</h2>
{{topics_html}}
</div>
{{topics_html}}
<div class="section">
<h2>群友称号</h2>
{{titles_html}}
</div>
{{titles_html}}
<div class="section">
<h2>群圣经</h2>
{{quotes_html}}
</div>
{{quotes_html}}
<div class="footer">
Generated by AstrBot | {{current_datetime}}
+14 -9
View File
@@ -1,11 +1,16 @@
{% for quote in quotes %}
<div style="margin-bottom: 10px; padding: 10px; background: #f9f9f9; border-left: 3px solid #ccc;">
<p style="font-style: italic; margin: 0;">"{{ quote.content }}"</p>
<div style="text-align: right; font-size: 0.8em; margin-top: 5px;">
— {{ quote.sender }}
</div>
<div style="text-align: right; font-size: 0.7em; color: #888;">
入选理由: {{ quote.reason }}
{% if quotes %}
<div class="section">
<h2>群圣经</h2>
{% for quote in quotes %}
<div style="margin-bottom: 10px; padding: 10px; background: #f9f9f9; border-left: 3px solid #ccc;">
<p style="font-style: italic; margin: 0;">"{{ quote.content }}"</p>
<div style="text-align: right; font-size: 0.8em; margin-top: 5px;">
{{ quote.sender }}
</div>
<div style="text-align: right; font-size: 0.7em; color: #888;">
入选理由: {{ quote.reason }}
</div>
</div>
{% endfor %}
</div>
{% endfor %}
{% endif %}
+11 -6
View File
@@ -1,7 +1,12 @@
{% for item in topics %}
<div style="margin-bottom: 10px; border-bottom: 1px dashed #ccc; padding-bottom: 5px;">
<strong>#{{ item.index }} {{ item.topic.topic }}</strong>
<span style="color: #666; font-size: 0.8em;">(参与者: {{ item.contributors }})</span>
<p style="margin: 5px 0;">{{ item.topic.detail }}</p>
{% if topics %}
<div class="section">
<h2>热门话题</h2>
{% for item in topics %}
<div style="margin-bottom: 10px; border-bottom: 1px dashed #ccc; padding-bottom: 5px;">
<strong>#{{ item.index }} {{ item.topic.topic }}</strong>
<span style="color: #666; font-size: 0.8em;">(参与者: {{ item.contributors }})</span>
<p style="margin: 5px 0;">{{ item.topic.detail }}</p>
</div>
{% endfor %}
</div>
{% endfor %}
{% endif %}
@@ -1,8 +1,12 @@
{% for item in titles %}
<div style="margin-bottom: 10px; border: 1px solid #eee; padding: 5px;">
<div style="font-weight: bold;">{{ item.name }} - {{ item.title }}</div>
<div style="font-size: 0.8em; background: #eee; display: inline-block; padding: 2px 5px; border-radius: 3px;">{{
item.mbti }}</div>
<div style="font-size: 0.9em; color: #555; margin-top: 5px;">{{ item.reason }}</div>
{% if titles %}
<div class="section">
<h2>群友称号</h2>
{% for item in titles %}
<div style="margin-bottom: 10px; border: 1px solid #eee; padding: 5px;">
<div style="font-weight: bold;">{{ item.name }} - {{ item.title }}</div>
<div style="font-size: 0.8em; background: #eee; display: inline-block; padding: 2px 5px; border-radius: 3px;">{{ item.mbti }}</div>
<div style="font-size: 0.9em; color: #555; margin-top: 5px;">{{ item.reason }}</div>
</div>
{% endfor %}
</div>
{% endfor %}
{% endif %}