feat: 用户被多次举报合并
This commit is contained in:
@@ -24,6 +24,18 @@
|
||||
{% if appeal.blacklist_entry %}
|
||||
<p class="mb-0"><strong>站点:</strong> {{ appeal.blacklist_entry.pt_site }}</p>
|
||||
<p class="mb-0"><strong>UID:</strong> {{ appeal.blacklist_entry.uid }}</p>
|
||||
<p class="mb-1"><strong>违规原因:</strong></p>
|
||||
{% if appeal.blacklist_entry.reason_categories and appeal.blacklist_entry.reason_categories|length > 0 %}
|
||||
<ul class="mb-0">
|
||||
{% for reason in appeal.blacklist_entry.reason_categories %}
|
||||
<li>{{ reason | translate_reason }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% elif appeal.blacklist_entry.report %}
|
||||
<p class="mb-0">{{ appeal.blacklist_entry.report.reason_category | translate_reason }}</p>
|
||||
{% else %}
|
||||
<p class="mb-0 text-muted">未知</p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p class="mb-0 text-muted">黑名单记录已删除</p>
|
||||
{% endif %}
|
||||
|
||||
@@ -14,9 +14,20 @@
|
||||
<li class="list-group-item"><strong>UID:</strong> {{ entry.uid }}</li>
|
||||
<li class="list-group-item"><strong>邮箱:</strong> {{ entry.email }}</li>
|
||||
<li class="list-group-item"><strong>站点:</strong> {{ entry.pt_site }}</li>
|
||||
{% if entry.report %}
|
||||
<li class="list-group-item"><strong>违规原因:</strong> {{ entry.report.reason_category | translate_reason }}</li>
|
||||
{% endif %}
|
||||
<li class="list-group-item">
|
||||
<strong>违规原因:</strong>
|
||||
{% if entry.reason_categories and entry.reason_categories|length > 0 %}
|
||||
<ul class="mb-0 mt-1">
|
||||
{% for reason in entry.reason_categories %}
|
||||
<li>{{ reason | translate_reason }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% elif entry.report %}
|
||||
{{ entry.report.reason_category | translate_reason }}
|
||||
{% else %}
|
||||
未知
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<form method="POST" novalidate>
|
||||
|
||||
@@ -45,9 +45,18 @@
|
||||
</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item"><strong>违规站点:</strong> {{ search_result.pt_site }}</li>
|
||||
{% if search_result.report %}
|
||||
<li class="list-group-item"><strong>违规原因:</strong> {{ search_result.report.reason_category | translate_reason }}</li>
|
||||
{% endif %}
|
||||
<li class="list-group-item">
|
||||
<strong>违规原因:</strong>
|
||||
{% if search_result.reason_categories and search_result.reason_categories|length > 0 %}
|
||||
<ul class="mb-0 mt-1">
|
||||
{% for reason in search_result.reason_categories %}
|
||||
<li>{{ reason | translate_reason }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
未知
|
||||
{% endif %}
|
||||
</li>
|
||||
<li class="list-group-item"><strong>记录时间:</strong> {{ search_result.created_at.strftime('%Y-%m-%d') }}</li>
|
||||
</ul>
|
||||
<p class="text-muted small mt-3">为保护隐私,仅展示必要的脱敏信息。具体违规描述不对外公开。</p>
|
||||
|
||||
Reference in New Issue
Block a user