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

{{ pdoc['title'] }}

{% if not pdoc['data'] %}

{{ _('No dataset at present.') }}

{% endif %} {% if pdoc['data'] is mapping %}

{{ _('Test data comes from') }} {{ pdoc['data']['domain'] }}/{{ pdoc['data']['pid'] }}

{% endif %} {% if tdoc %} {% if tdoc['doc_type'] == vj4.model.document.TYPE_CONTEST %} {% if handler.is_done(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 %}{# handler.is_done(tdoc) #} {% else %}{# tdoc['doc_type'] == vj4.model.document.TYPE_CONTEST #} {% if handler.is_homework_extended(tdoc) %}

{{ _('The homework\'s deadline is due but in extension. You can still submit for this problem but your score will be penalized.') }}

{% elif handler.is_done(tdoc) %}{# handler.is_homework_extended(tdoc) #}

{{ _('You cannot submit for this problem because the homework\'s deadline is due.') }}

{% endif %}{# handler.is_homework_extended(tdoc) #} {% endif %}{# tdoc['doc_type'] == vj4.model.document.TYPE_CONTEST #} {% endif %}{# tdoc #} {{ pdoc['content']|markdown }}
{% with owner_udoc=udoc, owner_dudoc=dudoc %} {% include "partials/problem_sidebar.html" %} {% endwith %}
{% endblock %}