{% extends "layout/basic.html" %} {% import "components/contest.html" as contest with context %} {% import "components/record.html" as record with context %} {% import "components/problem.html" as problem with context %} {% block content %} {{ set(UiContext, 'tdoc', tdoc) }}

{{ tdoc.title }}

{{ _(model.contest.statusText(tdoc)) }} {{ _(model.contest.RULES[tdoc.rule].TEXT) }} {{ _('Start at') }}: {{ contest.render_time(tdoc.beginAt) }} {{ contest.render_duration(tdoc) }} {{ _('hour(s)') }} {{ _('Host') }}: {{ user.render_inline(udict[tdoc.owner], badge=false) }} {{ tdoc['attend']|default(0) }} {% if tsdoc.attend %} {{ _('Attended') }} {% endif %}
{{ tdoc['content']|markdown|safe }} {% if model.contest.isOngoing(tdoc) %}

{{ _('We will check code similarity after this contest.') }}

{% endif %}
{% if model.contest.isOngoing(tdoc) or model.contest.isDone(tdoc) %}

{{ _('Problem') }}

{% if tsdoc.attend or model.contest.isDone(tdoc) %}
{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% endif %} {%- for pid in tdoc.pids -%} {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} {% if psdict[pid] and psdict[pid].rid %} {% set rdoc = rdict[psdict[pid].rid] %} {% if model.contest.canShowSelfRecord.call(handler, tdoc) %} {{ record.render_status_td(rdoc) }} {% else %} {% endif %} {% else %} {% endif %} {% endif %} {%- endfor -%}
{{ _('Status') }} {{ _('Last Submit At') }}{{ _('Problem') }}
{{ _('Submitted') }}{{ datetimeSpan(rdoc._id)|safe }}{{ _('No Submissions') }} - {{ problem.render_problem_title(pdict[pid], tdoc=tdoc, show_invisible_flag=false, show_tags=false) }}
{% else %} {{ nothing.render('Please attend contest to see the problems.') }} {% endif %}
{% endif %}
{% set owner_udoc = udict[tdoc.owner] %} {% include "partials/contest_sidebar.html" %}
{% endblock %}