mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-21 21:48:42 +00:00
feat(submissions): submission status detail display
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
ab4dff592c
commit
d824955ebe
@ -56,8 +56,13 @@ function echoSubmissionItem($info) {
|
||||
'unknown_char' => '?',
|
||||
'result_badge' => true,
|
||||
];
|
||||
$show_status_details = $submission->viewerCanSeeStatusDetailsHTML(Auth::user());
|
||||
|
||||
echo '<div class="list-group-item">';
|
||||
if ($show_status_details) {
|
||||
echo '<div class="list-group-item bg-warning bg-opacity-25">';
|
||||
} else {
|
||||
echo '<div class="list-group-item">';
|
||||
}
|
||||
echo '<div class="row gy-2 align-items-center">';
|
||||
|
||||
echo '<div class="col-lg-3 col-sm-8 d-flex gap-2">';
|
||||
@ -98,6 +103,17 @@ function echoSubmissionItem($info) {
|
||||
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
|
||||
if ($show_status_details) {
|
||||
echo '<div class="list-group-item">';
|
||||
echo '<table class="w-100">';
|
||||
echo '<tr id="status_details_' . $submission->info['id'] . '">';
|
||||
echo $submission->getStatusDetailsHTML();
|
||||
echo '</tr>';
|
||||
echo '<script>update_judgement_status_details(' . $submission->info['id'] . ')</script>';
|
||||
echo '</table>';
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
$pag = new Paginator([
|
||||
|
@ -532,7 +532,7 @@ class UOJSubmission {
|
||||
}
|
||||
} else {
|
||||
if ($cfg['result_badge']) {
|
||||
echo $tag_st, ' class="fs-5"><span class="badge text-bg-primary">', $this->publicStatus(), '</span>', $tag_ed;
|
||||
echo $tag_st, ' class="fs-5"><span class="badge text-white bg-primary">', $this->publicStatus(), '</span>', $tag_ed;
|
||||
} else {
|
||||
echo $tag_st, ' class="small text-decoration-none">', $this->publicStatus(), $tag_ed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user