feat: 优化

This commit is contained in:
DengDai
2025-11-28 09:08:53 +08:00
parent d71e46ecd0
commit c681560f73
11 changed files with 22 additions and 14 deletions

View File

@@ -74,7 +74,7 @@
<span><strong>#{{ r.id }}</strong> - {{ r.reason_category | translate_reason }}</span>
<span class="badge bg-secondary">{{ r.status | translate_status }}</span>
</div>
<small class="text-muted">{{ r.created_at.strftime('%Y-%m-%d') }} | 举报人: {{ r.reporter.username }}</small>
<small class="text-muted">{{ (r.created_at | to_beijing_time).strftime('%Y-%m-%d') }} | 举报人: {{ r.reporter.username }}</small>
</a>
{% endfor %}
</div>
@@ -95,7 +95,7 @@
<div class="p-2 bg-light rounded">
<p class="small mb-0">{{ comment.body | safe }}</p>
</div>
<small class="text-muted">{{ comment.created_at.strftime('%Y-%m-%d %H:%M') }}</small>
<small class="text-muted">{{ (comment.created_at | to_beijing_time).strftime('%Y-%m-%d %H:%M') }}</small>
</div>
</div>
{% else %}