mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-21 21:08:42 +00:00
fix: 571d5cddc3
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
34270c328a
commit
9ad23faefc
@ -634,6 +634,10 @@ class UOJSubmission {
|
||||
'judge_time' => UOJLocale::get('problems::judge time'),
|
||||
];
|
||||
|
||||
if (!$this->problem || !($this->problem instanceof UOJContestProblem)) {
|
||||
$cfg['contest_hidden'] = true;
|
||||
}
|
||||
|
||||
echo '<div class="card mb-3">';
|
||||
echo '<div class="card-body vstack gap-2">';
|
||||
|
||||
|
@ -266,7 +266,7 @@ trait UOJSubmissionLikeTrait {
|
||||
break;
|
||||
case 'problem':
|
||||
if ($this->problem) {
|
||||
if ($cfg['contest_problem_letter']) {
|
||||
if ($cfg['contest_problem_letter'] && $this->problem instanceof UOJContestProblem) {
|
||||
echo $this->problem->getLink($cfg['problem_title'] + ['with' => 'letter', 'simplify' => true]);
|
||||
} else {
|
||||
echo $this->problem->getLink($cfg['problem_title']);
|
||||
@ -276,7 +276,7 @@ trait UOJSubmissionLikeTrait {
|
||||
}
|
||||
break;
|
||||
case 'contest':
|
||||
if ($this->problem && $this->problem->contest) {
|
||||
if ($this->problem && $this->problem instanceof UOJContestProblem) {
|
||||
echo $this->problem->contest->getLink();
|
||||
} else {
|
||||
echo '<span class="text-danger">?</span>';
|
||||
|
Loading…
Reference in New Issue
Block a user