style: 统一处理历史状态展示口径
This commit is contained in:
@@ -35,17 +35,17 @@
|
||||
<label for="id_risk_status">风险状态</label>
|
||||
<select id="id_risk_status" name="risk_status">
|
||||
<option value="">全部风险</option>
|
||||
<option value="high"{% if risk_status == "high" %} selected{% endif %}>high</option>
|
||||
<option value="medium"{% if risk_status == "medium" %} selected{% endif %}>medium</option>
|
||||
<option value="low"{% if risk_status == "low" %} selected{% endif %}>low</option>
|
||||
<option value="high"{% if risk_status == "high" %} selected{% endif %}>已阻断</option>
|
||||
<option value="medium"{% if risk_status == "medium" %} selected{% endif %}>待复核</option>
|
||||
<option value="low"{% if risk_status == "low" %} selected{% endif %}>已完成</option>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<label for="id_notify_status">通知状态</label>
|
||||
<select id="id_notify_status" name="notify_status">
|
||||
<option value="">全部状态</option>
|
||||
<option value="sent"{% if notify_status == "sent" %} selected{% endif %}>sent</option>
|
||||
<option value="failed"{% if notify_status == "failed" %} selected{% endif %}>failed</option>
|
||||
<option value="sent"{% if notify_status == "sent" %} selected{% endif %}>已发送</option>
|
||||
<option value="failed"{% if notify_status == "failed" %} selected{% endif %}>失败</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="button-row">
|
||||
@@ -117,7 +117,7 @@
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="pill {% if row.conversation_status == 'success' %}pill-success{% elif row.conversation_status == 'failed' %}pill-danger{% else %}pill-signal{% endif %}">
|
||||
<span class="pill {% if row.conversation_status == '已完成' %}pill-success{% elif row.conversation_status == '失败' or row.conversation_status == '已阻断' %}pill-danger{% else %}pill-signal{% endif %}">
|
||||
{{ row.conversation_status }}
|
||||
</span>
|
||||
</td>
|
||||
@@ -126,7 +126,7 @@
|
||||
<span class="pill {% if row.log.status == 'success' %}pill-success{% else %}pill-danger{% endif %}">{{ row.log.get_status_display_text }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="pill {% if row.risk_status == 'high' %}pill-danger{% elif row.risk_status == 'medium' %}pill-signal{% elif row.risk_status == 'low' %}pill-success{% endif %}">
|
||||
<span class="pill {% if row.risk_status == '已阻断' or row.risk_status == '失败' %}pill-danger{% elif row.risk_status == '待复核' or row.risk_status == '处理中' %}pill-signal{% elif row.risk_status == '已完成' %}pill-success{% endif %}">
|
||||
{{ row.risk_status }}
|
||||
</span>
|
||||
</td>
|
||||
@@ -134,7 +134,7 @@
|
||||
<span class="pill pill-accent">{{ row.notify_reason }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="pill {% if row.notify_status == 'sent' %}pill-success{% elif row.notify_status == 'failed' %}pill-danger{% else %}pill-signal{% endif %}">
|
||||
<span class="pill {% if row.notify_status == '已发送' %}pill-success{% elif row.notify_status == '失败' %}pill-danger{% else %}pill-signal{% endif %}">
|
||||
{{ row.notify_status }}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user