mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: contest: fix pending display
This commit is contained in:
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 %}
|
||||
|
||||
|
||||
Reference in new issue
Block a user