{% 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) }} {{ set(UiContext, 'tsdoc', tsdoc) }}

{{ tdoc.title }}

{{ _(model.contest.statusText(tdoc, tsdoc)) }} {{ _(model.contest.RULES[tdoc.rule].TEXT) }} {{ _('Start at') }}: {{ contest.render_time(tsdoc.startAt or 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, tsdoc) %}

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

{% endif %} {% if tdoc.duration %}

{{ _('The contest is a flexible time contest. You need to complete the contest within a specified time after you attended.') }}

{% endif %}
{% if tdoc.files.length %}

{{ _('Files') }}

{% include "partials/files.html" %}
{% endif %}
{% set owner_udoc = udict[tdoc.owner] %} {% include "partials/contest_sidebar.html" %}
{% endblock %}