ui: add hint when problem config incorrect

This commit is contained in:
undefined committed 2021-07-31 13:50:57 +08:00
1 parent 2d135f6314
commit bb67a39e58
2 files changed
+6 -1

No files matched your search

@@ -69,6 +69,11 @@
<p>{{ _('No testdata at current.') }}</p>
</blockquote>
{% endif %}
{% if typeof(pdoc.config) == 'string' %}
<blockquote class="warn">
<p>{{ pdoc.config }}</p>
</blockquote>
{% endif %}
{% if tdoc and tdoc.docType == model.document.TYPE_CONTEST and model.contest.isDone(tdoc) %}
<blockquote class="note">
<p>{{ _('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.') }}</p>