From bb67a39e58cf14a60b9bde320912e0845b9775bc Mon Sep 17 00:00:00 2001 From: undefined Date: Sat, 31 Jul 2021 13:50:57 +0800 Subject: [PATCH] ui: add hint when problem config incorrect --- packages/ui-default/package.json | 2 +- packages/ui-default/templates/problem_detail.html | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/ui-default/package.json b/packages/ui-default/package.json index ec5881c76..17cb56107 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/ui-default", - "version": "4.14.2", + "version": "4.14.3", "author": "undefined ", "license": "AGPL-3.0", "main": "hydro.js", diff --git a/packages/ui-default/templates/problem_detail.html b/packages/ui-default/templates/problem_detail.html index 9c04c32a1..b6190b0b5 100644 --- a/packages/ui-default/templates/problem_detail.html +++ b/packages/ui-default/templates/problem_detail.html @@ -69,6 +69,11 @@
{{ _('No testdata at current.') }}
{% endif %} + {% if typeof(pdoc.config) == 'string' %} +++ {% endif %} {% if tdoc and tdoc.docType == model.document.TYPE_CONTEST and model.contest.isDone(tdoc) %}{{ pdoc.config }}
+
{{ _('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.') }}