diff --git a/web/app/controllers/problem_list.php b/web/app/controllers/problem_list.php
index 8c724b5..b976cc7 100644
--- a/web/app/controllers/problem_list.php
+++ b/web/app/controllers/problem_list.php
@@ -37,9 +37,6 @@
} else {
echo '
';
}
- if ($problem['is_hidden']) {
- echo ' [隐藏] ';
- }
if ($problem['uploader'] == $myUser['username']) {
echo ' [我的题目] ';
}
@@ -49,6 +46,10 @@
}
echo ' href="/problem/', $problem['id'], '">', $problem['title'], '';
+ if ($problem['is_hidden']) {
+ echo ' ', UOJLocale::get('hidden'), ' ';
+ }
+
if (isset($_COOKIE['show_tags_mode'])) {
echo ' ' . $problem["uploader"] . ' ';
diff --git a/web/app/controllers/problem_set.php b/web/app/controllers/problem_set.php
index 96682c0..8d6bcfe 100644
--- a/web/app/controllers/problem_set.php
+++ b/web/app/controllers/problem_set.php
@@ -49,9 +49,6 @@
} else {
echo ' | ';
}
- if ($problem['is_hidden']) {
- echo ' [隐藏] ';
- }
if ($problem['uploader'] == $myUser['username']) {
echo ' [我的题目] ';
}
@@ -60,6 +57,11 @@
echo ' class="text-decoration-none" ';
}
echo ' href="/problem/', $problem['id'], '">', $problem['title'], '';
+
+ if ($problem['is_hidden']) {
+ echo ' ', UOJLocale::get('hidden'), ' ';
+ }
+
if (isset($_COOKIE['show_tags_mode'])) {
echo ' ' . $problem["uploader"] . ' ';
diff --git a/web/app/locale/basic/en.php b/web/app/locale/basic/en.php
index edb6731..11cf62b 100644
--- a/web/app/locale/basic/en.php
+++ b/web/app/locale/basic/en.php
@@ -39,6 +39,7 @@ return [
'sex' => 'Sex',
'motto' => 'Motto',
'view all' => 'View all',
+ 'hidden' => 'Hidden',
'appraisal' => 'Appraisal',
'submit' => 'Submit',
'browse' => 'Browse',
diff --git a/web/app/locale/basic/zh-cn.php b/web/app/locale/basic/zh-cn.php
index 85e9fae..134891e 100644
--- a/web/app/locale/basic/zh-cn.php
+++ b/web/app/locale/basic/zh-cn.php
@@ -39,6 +39,7 @@ return [
'sex' => '性别',
'motto' => '格言',
'view all' => '查看全部',
+ 'hidden' => '隐藏',
'appraisal' => '评价',
'submit' => '提交',
'browse' => '浏览',
|