{% endif %} {% if typeof(pdoc.config) == 'string' %}{{ _('No {0} at current.').format(_("testdata")) }}
{% endif %} {% if pdoc.config.langs and not pdoc.config.langs|length %}{{ pdoc.config }}
{% endif %} {% if tdoc and tdoc.docType == model.document.TYPE_CONTEST %} {% if mode == 'view' %}{{ _('No submission language available for this problem.') }}
{% elif mode == 'correction' %}{{ _('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 %} {% endif %} {% if not renderredContent %} {% set preferredLang = handler.request.query.lang or handler.user.viewLang or handler.session.viewLang %} {% set renderredContent = pdoc.content|content(preferredLang, pdoc.html) %} {% endif %} {{ renderredContent|safe }}{{ _('The contest is ended. New submissions will be treated as correction submissions and will not be counted in the contest.') }}