{% 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 %}
{% if page_name not in ['problem_config', 'problem_detail', 'homework_detail_problem', 'contest_detail_problem'] %}

{{ _('Information') }}

{% include "partials/problem-sidebar-information.html" %}
{% elif page_name != 'contest_detail_problem' and page_name != 'problem_config' %}

{{ _('Statistics') }}

{% endif %} {% if page_name == 'problem_detail' and (tdocs.length or ctdocs.length) %}

{{ _('Related') }}

{% if tdocs.length %}

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

{%- for tdoc in tdocs -%}

{{ tdoc.title }}

{%- endfor -%} {% endif %} {% if ctdocs.length %}

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

{%- for tdoc in ctdocs -%}

{{ tdoc.title }}

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