diff --git a/web/app/controllers/problem.php b/web/app/controllers/problem.php index 36e3696..bf95e1f 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -307,7 +307,25 @@ if (UOJContest::cur()) { : -
+
+ + + findInContests(); ?> + +
+
:
+ +
+ +
+ +
diff --git a/web/app/locale/problems/en.php b/web/app/locale/problems/en.php index 387a0f9..e591ffd 100644 --- a/web/app/locale/problems/en.php +++ b/web/app/locale/problems/en.php @@ -64,4 +64,5 @@ return [ 'attachments download' => 'Attachments download', 'resources' => 'Resources', 'cannot submit' => 'This problem doesn\'t configured submission_requirement, so it cannot be submitted temporarily.', + 'the problem was used in the following contest' => 'The problem was used in the following contest', ]; diff --git a/web/app/locale/problems/zh-cn.php b/web/app/locale/problems/zh-cn.php index 17606c2..ff53f9a 100644 --- a/web/app/locale/problems/zh-cn.php +++ b/web/app/locale/problems/zh-cn.php @@ -63,5 +63,6 @@ return [ 'test data' => '测试数据', 'attachments download' => '附件下载', 'resources' => '相关资源', - 'cannot submit' => '当前题目未配置 submission_requirement,暂时无法提交。' + 'cannot submit' => '当前题目未配置 submission_requirement,暂时无法提交。', + 'the problem was used in the following contest' => '该题目被以下比赛使用', ];