diff --git a/web/app/controllers/list.php b/web/app/controllers/list.php index ad1fcf7..5a24d80 100644 --- a/web/app/controllers/list.php +++ b/web/app/controllers/list.php @@ -20,6 +20,9 @@ function getProblemTR($info) { if ($problem->isUserOwnProblem(Auth::user())) { $html .= ' ' . UOJLocale::get('problems::my problem') . ' '; } + if ($info['type'] == 'remote') { + $html .= ' ' . HTML::tag('span', ['class' => 'badge text-bg-success'], '远端评测题'); + } if ($info['is_hidden']) { $html .= ' ' . UOJLocale::get('hidden') . ' '; } diff --git a/web/app/controllers/problem_set.php b/web/app/controllers/problem_set.php index 47623eb..e50dbe8 100644 --- a/web/app/controllers/problem_set.php +++ b/web/app/controllers/problem_set.php @@ -95,6 +95,9 @@ function getProblemTR($info) { if ($problem->isUserOwnProblem(Auth::user())) { $html .= ' ' . UOJLocale::get('problems::my problem') . ' '; } + if ($info['type'] == 'remote') { + $html .= ' ' . HTML::tag('span', ['class' => 'badge text-bg-success'], '远端评测题'); + } if ($info['is_hidden']) { $html .= ' ' . UOJLocale::get('hidden') . ' '; }