{% import "components/user.html" as user with context %} {% import "components/contest.html" as contest with context %}
{% if page_name != 'contest_detail' %}

{{ tdoc.title }}

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