From b82a26c903fed06e1c6e59476c9696c5152df953 Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 4 May 2021 13:24:23 +0800 Subject: [PATCH] ui: add no_testdata hint --- 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 d6b04f963..79ec75802 100644 --- a/packages/ui-default/package.json +++ b/packages/ui-default/package.json @@ -1,6 +1,6 @@ { "name": "@hydrooj/ui-default", - "version": "4.6.25", + "version": "4.6.26", "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 fc171e02d..5e7278733 100644 --- a/packages/ui-default/templates/problem_detail.html +++ b/packages/ui-default/templates/problem_detail.html @@ -38,6 +38,11 @@
+ {% if not pdoc.data.length %} +
+

{{ _('No testdata at current.') }}

+
+ {% endif %} {% if tdoc %} {% if tdoc.docType == model.document.TYPE_CONTEST %} {% if model.contest.isDone(tdoc) %}