diff --git a/web/app/controllers/submissions_list.php b/web/app/controllers/submissions_list.php index 7476573..f8143fc 100644 --- a/web/app/controllers/submissions_list.php +++ b/web/app/controllers/submissions_list.php @@ -56,8 +56,13 @@ function echoSubmissionItem($info) { 'unknown_char' => '?', 'result_badge' => true, ]; + $show_status_details = $submission->viewerCanSeeStatusDetailsHTML(Auth::user()); - echo '
'; + if ($show_status_details) { + echo '
'; + } else { + echo '
'; + } echo '
'; echo '
'; @@ -98,6 +103,17 @@ function echoSubmissionItem($info) { echo '
'; echo '
'; + + if ($show_status_details) { + echo '
'; + echo ''; + echo ''; + echo $submission->getStatusDetailsHTML(); + echo ''; + echo ''; + echo '
'; + echo '
'; + } } $pag = new Paginator([ diff --git a/web/app/models/UOJSubmission.php b/web/app/models/UOJSubmission.php index 8b49973..be20cd6 100644 --- a/web/app/models/UOJSubmission.php +++ b/web/app/models/UOJSubmission.php @@ -532,7 +532,7 @@ class UOJSubmission { } } else { if ($cfg['result_badge']) { - echo $tag_st, ' class="fs-5">', $this->publicStatus(), '', $tag_ed; + echo $tag_st, ' class="fs-5">', $this->publicStatus(), '', $tag_ed; } else { echo $tag_st, ' class="small text-decoration-none">', $this->publicStatus(), $tag_ed; }