Skip to content

Commit 92dcb60

Browse files
Merge branch 'main' into logo-upload-fix
2 parents e9373a0 + f9cf0be commit 92dcb60

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

webapp/src/Controller/Jury/SubmissionController.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ public function indexAction(
9898

9999
$refresh = [
100100
'after' => 15,
101-
'url' => $this->generateUrl('jury_submissions', ['view' => $viewTypes[$view]]),
101+
'url' => $this->generateUrl('jury_submissions', [
102+
'view' => $viewTypes[$view],
103+
'page' => $request->query->getInt('page', 1),
104+
]),
102105
'ajax' => true,
103106
];
104107

webapp/src/Controller/Team/MiscController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ public function printAction(Request $request): Response
181181
$ret = $this->dj->printUserFile(
182182
$realfile,
183183
$originalfilename,
184-
$langid
184+
$langid,
185+
true
185186
);
186187

187188
return $this->render('team/print_result.html.twig', [

webapp/src/Twig/TwigExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ public function fileTypeIcon(string $type): string
11471147
public function problemBadge(ContestProblem $problem, bool $grayedOut = false): string
11481148
{
11491149
$rgb = Utils::convertToHex($problem->getColor() ?? '#ffffff');
1150-
if ($grayedOut) {
1150+
if ($grayedOut || empty($rgb)) {
11511151
$rgb = Utils::convertToHex('whitesmoke');
11521152
}
11531153
$background = Utils::parseHexColor($rgb);
@@ -1177,7 +1177,7 @@ public function problemBadge(ContestProblem $problem, bool $grayedOut = false):
11771177
public function problemBadgeMaybe(ContestProblem $problem, ScoreboardMatrixItem $matrixItem): string
11781178
{
11791179
$rgb = Utils::convertToHex($problem->getColor() ?? '#ffffff');
1180-
if (!$matrixItem->isCorrect) {
1180+
if (!$matrixItem->isCorrect || empty($rgb)) {
11811181
$rgb = Utils::convertToHex('whitesmoke');
11821182
}
11831183
$background = Utils::parseHexColor($rgb);

0 commit comments

Comments
 (0)