core: contest: fix pending display

This commit is contained in:
undefined committed 2022-11-15 19:57:49 +08:00
1 parent 9da8321677
commit 105bcbd118
2 files changed
+18 -17

No files matched your search

@@ -5,12 +5,8 @@
{% macro renderRecord(cell, canView) %}
<a href="{{ url('record_detail', rid=cell.raw) if canView else '' }}"{% if cell.hover %} data-tooltip="{{ cell.hover }}"{% endif %}>
{%- if cell.status == STATUS.STATUS_WAITING -%}
<span style="font-weight:bold;color:yellow">?</span>
{%- else -%}
{%- set _color = utils.status.getScoreColor(cell.score|default(cell.value)) -%}
<span style="font-weight:bold;color:{{ _color }}">{{ cell.value|string|nl2br|safe }}</span>
{%- endif -%}
{%- set _color = utils.status.getScoreColor(cell.score|default(cell.value)) -%}
<span style="font-weight:bold;color:{{ _color }}">{{ cell.value|string|nl2br|safe }}</span>
</a>
{% endmacro %}