Skip to content

Commit de0068c

Browse files
meisterTnickygerritsen
authored andcommitted
Fix pending subs on mobile scoreboard.
1 parent 59781ae commit de0068c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

webapp/src/Twig/TwigExtension.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,8 +1113,12 @@ public function problemBadgeMaybe(ContestProblem $problem, ScoreboardMatrixItem
11131113
$foreground,
11141114
$problem->getShortname()
11151115
);
1116-
if (!$matrixItem->isCorrect && $matrixItem->numSubmissions > 0) {
1117-
$ret = '<span><span class="strike-diagonal">' . $ret . '</span></span>';
1116+
if (!$matrixItem->isCorrect) {
1117+
if ($matrixItem->numSubmissionsPending > 0) {
1118+
$ret = '<span><span class="mobile-pending">' . $ret . '</span></span>';
1119+
} else if ($matrixItem->numSubmissions > 0) {
1120+
$ret = '<span><span class="strike-diagonal">' . $ret . '</span></span>';
1121+
}
11181122
}
11191123
return $ret;
11201124
}

0 commit comments

Comments
 (0)