{% import "components/user.html" as user with context %}
{% if page_name != 'homework_detail_problem' %}
{{ pdoc['title'] }}
{% endif %}
{% if model.contest.isOngoing(tdoc, tsdoc) or model.contest.isExtended(tdoc, tsdoc) %}
{% if page_name == 'homework_detail_problem' and handler.ctx.setting.get('ui-default.enableScratchpad') %}