样式优化
This commit is contained in:
parent
6c77a4ba05
commit
237f643a7f
|
@ -94,8 +94,8 @@
|
||||||
{% for key in summary_keys %}
|
{% for key in summary_keys %}
|
||||||
<li class="list-group-item d-flex justify-content-between align-items-center{{ " active" if result == key else "" }} {{ " list-group-item-primary" if predict_result == key else "" }}">
|
<li class="list-group-item d-flex justify-content-between align-items-center{{ " active" if result == key else "" }} {{ " list-group-item-primary" if predict_result == key else "" }}">
|
||||||
<span class="col-5">{{ key }}</span>
|
<span class="col-5">{{ key }}</span>
|
||||||
<span class="col-3">{{ '{:.1f}'.format(summary[key] | round(2)) }}票</span>
|
<span class="col-3">{{ '{:.1f}'.format(summary[key] | round(1)) }}票</span>
|
||||||
<span class="col-3">{{ '{:.1f}'.format(summary[key] / total_vote * 100 | round(2)) }}%</span>
|
<span class="col-3">{{ '{:.1f}'.format(summary[key] / total_vote * 100 | round(1)) }}%</span>
|
||||||
</li>
|
</li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
|
|
Loading…
Reference in New Issue