mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 07:48:41 +00:00
fix: hide score in test when score not exists
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
50efed50fd
commit
8f0c206cd7
@ -485,7 +485,7 @@ class JudgmentDetailsPrinter {
|
|||||||
echo '<h3 class="fs-5">', 'Subtask #', $subtask_num, ': ', '</h3>';
|
echo '<h3 class="fs-5">', 'Subtask #', $subtask_num, ': ', '</h3>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
if ($this->styler->show_score) {
|
if ($this->styler->show_score && $subtask_score !== '') {
|
||||||
echo '<div class="col-sm-2">';
|
echo '<div class="col-sm-2">';
|
||||||
echo '<i class="bi bi-clipboard-check"></i> ', $subtask_score, ' pts';
|
echo '<i class="bi bi-clipboard-check"></i> ', $subtask_score, ' pts';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
@ -555,7 +555,7 @@ class JudgmentDetailsPrinter {
|
|||||||
}
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
if ($this->styler->show_score) {
|
if ($this->styler->show_score && $test_score !== '') {
|
||||||
echo '<div class="col-sm-2">';
|
echo '<div class="col-sm-2">';
|
||||||
echo '<i class="bi bi-clipboard-check"></i> ', $test_score, ' pts';
|
echo '<i class="bi bi-clipboard-check"></i> ', $test_score, ' pts';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
Loading…
Reference in New Issue
Block a user