mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 13:28:41 +00:00
feat(web/problems): is_hidden badge
This commit is contained in:
parent
b97d606b07
commit
a90815b20c
@ -37,9 +37,6 @@
|
||||
} else {
|
||||
echo '<td class="text-left">';
|
||||
}
|
||||
if ($problem['is_hidden']) {
|
||||
echo ' <span class="text-danger">[隐藏]</span> ';
|
||||
}
|
||||
if ($problem['uploader'] == $myUser['username']) {
|
||||
echo ' <span class="text-info">[我的题目]</span> ';
|
||||
}
|
||||
@ -49,6 +46,10 @@
|
||||
}
|
||||
echo ' href="/problem/', $problem['id'], '">', $problem['title'], '</a>';
|
||||
|
||||
if ($problem['is_hidden']) {
|
||||
echo ' <span class="badge text-bg-danger"><i class="bi bi-eye-slash-fill"></i> ', UOJLocale::get('hidden'), '</span> ';
|
||||
}
|
||||
|
||||
if (isset($_COOKIE['show_tags_mode'])) {
|
||||
echo ' <span class="text-info" style="font-size: 10px">' . $problem["uploader"] . '</span> ';
|
||||
|
||||
|
@ -49,9 +49,6 @@
|
||||
} else {
|
||||
echo '<td class="text-left">';
|
||||
}
|
||||
if ($problem['is_hidden']) {
|
||||
echo ' <span class="text-danger">[隐藏]</span> ';
|
||||
}
|
||||
if ($problem['uploader'] == $myUser['username']) {
|
||||
echo ' <span class="text-info">[我的题目]</span> ';
|
||||
}
|
||||
@ -60,6 +57,11 @@
|
||||
echo ' class="text-decoration-none" ';
|
||||
}
|
||||
echo ' href="/problem/', $problem['id'], '">', $problem['title'], '</a>';
|
||||
|
||||
if ($problem['is_hidden']) {
|
||||
echo ' <span class="badge text-bg-danger"><i class="bi bi-eye-slash-fill"></i> ', UOJLocale::get('hidden'), '</span> ';
|
||||
}
|
||||
|
||||
if (isset($_COOKIE['show_tags_mode'])) {
|
||||
echo ' <span class="text-info" style="font-size: 10px">' . $problem["uploader"] . '</span> ';
|
||||
|
||||
|
@ -39,6 +39,7 @@ return [
|
||||
'sex' => 'Sex',
|
||||
'motto' => 'Motto',
|
||||
'view all' => 'View all',
|
||||
'hidden' => 'Hidden',
|
||||
'appraisal' => 'Appraisal',
|
||||
'submit' => 'Submit',
|
||||
'browse' => 'Browse',
|
||||
|
@ -39,6 +39,7 @@ return [
|
||||
'sex' => '性别',
|
||||
'motto' => '格言',
|
||||
'view all' => '查看全部',
|
||||
'hidden' => '隐藏',
|
||||
'appraisal' => '评价',
|
||||
'submit' => '提交',
|
||||
'browse' => '浏览',
|
||||
|
Loading…
Reference in New Issue
Block a user