feat: 中文状态显示
This commit is contained in:
@@ -27,11 +27,11 @@
|
||||
<td>{{ appeal.appealer.username if appeal.appealer else '未知用户' }}</td>
|
||||
<td>{{ appeal.blacklist_entry.uid }}</td>
|
||||
<td>
|
||||
<span class="badge
|
||||
<span class="badge
|
||||
{% if 'closed' in appeal.status %} bg-secondary
|
||||
{% elif 'user' in appeal.status %} bg-warning text-dark
|
||||
{% else %} bg-info text-dark {% endif %}">
|
||||
{{ appeal.status }}
|
||||
{{ appeal.status | translate_status }}
|
||||
</span>
|
||||
</td>
|
||||
<td>{{ appeal.updated_at.strftime('%Y-%m-%d %H:%M') }}</td>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
{% if user.id == 1 %}
|
||||
<td>
|
||||
<div>角色: <span class="badge bg-danger">{{ user.role }}</span></div>
|
||||
<div>状态: <span class="badge bg-success">{{ user.status }}</span></div>
|
||||
<div>状态: <span class="badge bg-success">{{ user.status | translate_status }}</span></div>
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-sm btn-secondary" disabled>不可修改</button>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<li class="list-group-item"><strong>所属站点:</strong> {{ report.reported_pt_site }}</li>
|
||||
<li class="list-group-item"><strong>举报理由:</strong> {{ report.reason_category }}</li>
|
||||
<li class="list-group-item"><strong>举报人:</strong> {{ report.reporter.username }}</li>
|
||||
<li class="list-group-item"><strong>状态:</strong> <strong class="text-capitalize">{{ report.status }}</strong></li>
|
||||
<li class="list-group-item"><strong>状态:</strong> <strong class="text-capitalize">{{ report.status | translate_status }}</strong></li>
|
||||
<li class="list-group-item"><strong>详细描述:</strong><br><span style="white-space: pre-wrap;">{{ report.description }}</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<small class="text-muted">{{ report.reported_pt_site }}</small>
|
||||
</td>
|
||||
<td>{{ report.reporter.username }}</td>
|
||||
<td><span class="badge bg-info text-dark">{{ report.status }}</span></td>
|
||||
<td><span class="badge bg-info text-dark">{{ report.status | translate_status }}</span></td>
|
||||
<td>{{ report.created_at.strftime('%Y-%m-%d %H:%M') }}</td>
|
||||
<td><a href="{{ url_for('main.report_detail', report_id=report.id) }}" class="btn btn-sm btn-outline-primary">查看详情</a></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user