mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-25 13:11:52 +00:00
feat(problems): "远端评测题" badge
This commit is contained in:
parent
8041b49bd8
commit
6124403705
@ -20,6 +20,9 @@ function getProblemTR($info) {
|
||||
if ($problem->isUserOwnProblem(Auth::user())) {
|
||||
$html .= ' <span class="badge text-white bg-info">' . UOJLocale::get('problems::my problem') . '</span> ';
|
||||
}
|
||||
if ($info['type'] == 'remote') {
|
||||
$html .= ' ' . HTML::tag('span', ['class' => 'badge text-bg-success'], '远端评测题');
|
||||
}
|
||||
if ($info['is_hidden']) {
|
||||
$html .= ' <span class="badge text-bg-danger"><i class="bi bi-eye-slash-fill"></i> ' . UOJLocale::get('hidden') . '</span> ';
|
||||
}
|
||||
|
@ -95,6 +95,9 @@ function getProblemTR($info) {
|
||||
if ($problem->isUserOwnProblem(Auth::user())) {
|
||||
$html .= ' <a href="/problems?my=on"><span class="badge text-white bg-info">' . UOJLocale::get('problems::my problem') . '</span></a> ';
|
||||
}
|
||||
if ($info['type'] == 'remote') {
|
||||
$html .= ' ' . HTML::tag('span', ['class' => 'badge text-bg-success'], '远端评测题');
|
||||
}
|
||||
if ($info['is_hidden']) {
|
||||
$html .= ' <a href="/problems?is_hidden=on"><span class="badge text-bg-danger"><i class="bi bi-eye-slash-fill"></i> ' . UOJLocale::get('hidden') . '</span></a> ';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user