{% 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') }}
{{ _(handler.status_text(tdoc)) }}
{{ _('Rule') }}
{{ vj4.constant.contest.RULE_TEXTS[tdoc['rule']] }}
{{ _('Problem') }}
{{ tdoc['pids']|length }}
{{ _('Start at') }}
{{ contest.render_time(tdoc['begin_at']) }}
{{ _('End at') }}
{{ contest.render_time(tdoc['end_at']) }}
{{ _('Duration') }}
{{ contest.render_duration(tdoc) }} {{ _('hour(s)') }}
{{ _('Host') }}
{{ user.render_inline(owner_udoc, dudoc=owner_dudoc, badge=false) }}
{{ _('Partic.') }}
{{ tdoc['attend']|default(0) }} {% if attended %} ({{ _('Attended') }}) {% endif %}