{% import "components/paginator.html" as paginator with context %} {% extends "layout/basic.html" %} {{ set(UiContext, 'tdoc', tdoc) }} {% set type = 'homework' if tdoc.rule == 'homework' else 'contest' %} {% macro renderRecord(cell, canView) %} {%- if cell.status == status.STATUS_JUDGING -%} ? {%- else -%} {%- set _color = utils.status.getScoreColor(cell.score|default(cell.value)) -%} {{ cell.value|string|nl2br|safe }} {%- endif -%} {% endmacro %} {% block content %}
{{ _('Scoreboard locked at {0}').format(datetimeSpan(tdoc.lockAt))|safe }}
{{ _('Please wait until contest host unlock the scoreboard.') }}
{%- if column.type == 'problem' and column.raw -%}
{{ column.value }} {{ pdict[column.raw].nAccept|default(0) }}/{{ pdict[column.raw].nSubmit|default(0) }} {%- else -%} {{ column.value|string|nl2br|safe }} {%- endif -%} |
{%- endfor -%}
---|
{%- if column.type == 'user' -%} {%- set canView = canViewAll or handler.user._id == column.raw -%} {{ user.render_inline(udict[column.raw], badge=false) }} {%- elif column.type == 'record' and column.raw -%} {{ column.value|string|nl2br|safe }} {%- elif column.type == 'records' -%} {%- for record in column.raw -%} {%- if loop.index0 -%}/{%- endif -%} {%- if record.raw -%} {%- set _color = utils.status.getScoreColor(record.score|default(record.value)) -%} {{ record.value|string|nl2br|safe }} {%- else -%} {{ record.value|string|nl2br|safe }} {%- endif -%} {%- endfor -%} {%- else -%} {{ column.value|string|nl2br|safe }} {%- endif -%} | {%- endfor -%}