{% extends "layout/basic.html" %} {% block content %}
{% if rdoc %}

{{ model.builtin.STATUS_TEXTS[rdoc.status] }}{% if rdoc.status != model.builtin.STATUS.STATUS_ACCEPTED %} {{ rdoc.score }}{% endif %}

{% else %}

{{ pdoc.title }}

{% endif %}
{% if not pdoc.data.length %}

{{ _('No testdata at current.') }}

{% endif %} {% if tdoc and tdoc.docType == model.document.TYPE_CONTEST and model.contest.isDone(tdoc) %}

{{ _('You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.') }}

{% endif %} {{ pdoc.content|content(handler.user.viewLang, pdoc.html)|safe }}
{% set owner_udoc = udoc %} {% include "partials/problem_sidebar.html" %}
{% endblock %}