{% import "components/user.html" as user with context %} {% import "components/contest.html" as contest with context %}

{{ tdoc.title }}

{{ _('Status') }}
{{ _(model.contest.statusText(tdoc, tsdoc)) }} {% if tsdoc.attend %} ({{ _('Attended') }}) {% endif %}
{{ _('Rule') }}
{{ model.contest.RULES[tdoc.rule].TEXT }}
{{ _('Problem') }}
{{ tdoc.pids.length }}
{{ _('Start at') }}
{{ contest.render_time(tsdoc.startAt or tdoc.beginAt) }}
{{ _('End at') }}
{{ contest.render_time(tsdoc.endAt or tdoc.endAt) }}
{{ _('Duration') }}
{{ contest.render_duration(tdoc) }} {{ _('hour(s)') }}
{{ _('Host') }}
{{ user.render_inline(owner_udoc, badge=false) }}
{{ _('Partic.') }}
{{ tdoc['attend']|default(0) }}