{% extends "layout/basic.html" %} {% import "components/problem.html" as problem with context %} {% block content %}
{% if show_status %} {% include 'record_detail_status.html' %} {% endif %} {% if rdoc['code'] %}

{{ _('Code') }}

{{ rdoc['code'] }}
{% endif %}

{{ _('Information') }}

{% if handler.has_perm(vj4.model.builtin.PERM_REJUDGE) %}
{% endif %}
{{ _('Submit By') }}
{{ user.render_inline(udoc, dudoc, modbadge=false) }}
{{ _('Type') }}
{{ _(vj4.constant.record.TYPE_TEXTS[rdoc['type']]) }}
{% if pdoc %}
{{ _('Problem') }}
{{ problem.render_problem_title(pdoc, tdoc, show_tags=false, show_invisible_flag=false, rp=none) }}
{% endif %} {% if tdoc %} {% if tdoc['doc_type'] == vj4.model.document.TYPE_CONTEST %}
{{ _('Contest') }}
{{ tdoc['title'] }}
{% else %}{# tdoc['doc_type'] == vj4.model.document.TYPE_CONTEST #}
{{ _('Homework') }}
{{ tdoc['title'] }}
{% endif %}{# tdoc['doc_type'] == vj4.model.document.TYPE_CONTEST #} {% endif %}{# tdoc #} {% if rdoc['type'] == vj4.constant.record.TYPE_PRETEST and (handler.own(rdoc, priv=vj4.model.builtin.PRIV_READ_PRETEST_DATA_SELF, field='uid') or handler.has_priv(vj4.model.builtin.PRIV_READ_PRETEST_DATA)) %}
{{ _('Pretest Data') }}
{{ _('Download') }}
{% elif rdoc['type'] == vj4.constant.record.TYPE_SUBMISSION and pdoc and (handler.own(pdoc, vj4.model.builtin.PERM_READ_PROBLEM_DATA_SELF) or handler.has_perm(vj4.model.builtin.PERM_READ_PROBLEM_DATA) or handler.has_priv(vj4.model.builtin.PRIV_READ_PROBLEM_DATA)) %}
{{ _('Problem Data') }}
{{ _('Download') }}
{% endif %}
{{ _('Language') }}
{{ vj4.constant.language.LANG_TEXTS[rdoc['lang']] }}
{{ _('Submit At') }}
{{ datetime_span(rdoc['_id'].generation_time) }}
{% if rdoc['judge_at'] %}
{{ _('Judged At') }}
{{ datetime_span(rdoc['judge_at']) }}
{% endif %} {% if judge_udoc %}
{{ _('Judged By') }}
{{ user.render_inline(judge_udoc, badge=false) }}
{% endif %}
{% if show_status %} {% include 'record_detail_summary.html' %} {% endif %}
{% endblock %}