{% import "components/user.html" as user with context %} {% import "components/problem.html" as problem with context %}
{% if page_name != 'problem_detail' and page_name != 'contest_detail_problem' %}

{{ pdoc['title'] }}

{% endif %}

{{ _('Information') }}

{% if pdoc['_id']|string|length < 10 %}
{{ _('ID') }}
{{ pdoc['_id'] }}
{% endif %} {% if page_name != 'discussion_node' and page_name != 'discussion_detail' %} {% if handler.hasPerm(perm.PERM_LOGGEDIN) %}
{{ _('Submission') }}
{% if pdoc['psdoc']['status'] %} {{ builtin.STATUS_TEXTS[pdoc['psdoc']['status']] }} {% else %} {{ _('(None)') }} {% endif %}
{% endif %} {% endif %}
{{ _('Difficulty') }}
{{ pdoc['difficulty'] or _('(None)') }}
{{ _('Category') }}
{% if pdoc['category'] %} {% for category in pdoc['category'] %} {{ category }} {% if loop.index < pdoc['category']|length %} {% if category in vj4.model.builtin.PROBLEM_CATEGORIES %} {{ _('problem-category-delim') }} {% else %} {{ _('problem-subcategory-delim') }} {% endif %} {% endif %} {% endfor %} {{ _('page.problem_detail.sidebar.show_category') }} {% else %} {{ _('(None)') }} {% endif %}
{{ _('Tags') }}
{{ problem.render_problem_tags(pdoc, true) }}
{{ _('# Submissions') }}
{{ pdoc.nSubmit }}
{% if page_name != 'discussion_node' and page_name != 'discussion_detail' %} {% if handler.hasPerm(perm.PERM_LOGGEDIN) %}
{{ _('# My Submissions') }}
{{ pdoc['psdoc'].nSubmit|default(0) }}
{% endif %} {% endif %}
{{ _('Accepted') }}
{{ pdoc.nAccept }}
{{ _('Accepted Ratio') }}
{% if pdoc.nSubmit > 0 %}{{ (100 * pdoc.nAccept / pdoc.nSubmit)|round|int }}%{% else %}{{ _('?') }}{% endif %}
{% if pdoc['num_be_copied'] %}
{{ _('Be Copied') }}
{{ pdoc['num_be_copied'] }}
{% endif %} {% if pdoc['owner_uid'] != 0 %}
{{ _('Uploaded By') }}
{{ user.render_inline(owner_udoc, owner_dudoc, badge=false) }}
{% endif %}
{% if page_name == 'problem_detail' and (tdocs or ctdocs) %}

{{ _('Related') }}

{% if tdocs %}

{{ _('In following training plans') }}:

{% for tdoc in tdocs %}

{{ tdoc['title'] }}

{% endfor %} {% endif %} {% if ctdocs %}

{{ _('In following contests') }}:

{% for tdoc in ctdocs %}

{{ tdoc['title'] }}

{% endfor %} {% endif %} {% if htdocs %}

{{ _('In following homework') }}:

{% for tdoc in htdocs %}

{{ tdoc['title'] }}

{% endfor %} {% endif %}
{% endif %}