Skip to content

Commit 4e0aac1

Browse files
committed
Rename as suggested by Nicky
1 parent 9354663 commit 4e0aac1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

webapp/src/Controller/PublicController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ public function scoreboardDataZipAction(
100100
return $this->dj->getScoreboardZip($request, $requestStack, $contest, $this->scoreboardService);
101101
}
102102

103-
#[Route(path: '/dynamic-css', name: 'get_dynamic_css')]
104-
public function dynamicCSS(): Response {
103+
#[Route(path: '/scoreboard-category-color.css', name: 'scoreboard_category_color_css')]
104+
public function scoreboardCategoryColorCss(): Response {
105105
$response = new Response();
106106
$response->headers->set('Content-Type', 'text/css');
107-
$response->setContent($this->renderView('public/dynamic.css.twig', $this->dj->getDynamicCSS()));
107+
$response->setContent($this->renderView('public/scoreboard_category_color.css.twig', $this->dj->getScoreboardCategoryColorCss()));
108108
return $response;
109109
}
110110

webapp/src/Service/DOMJudgeService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ public function getScoreboardZip(
15361536
/**
15371537
* @return array{'backgroundColors', array<TeamCategory>}
15381538
*/
1539-
public function getDynamicCSS(): array {
1539+
public function getScoreboardCategoryColorCss(): array {
15401540
$backgroundColors = array_map(fn($x) => ( $x->getColor() ?? '#FFFFFF' ), $this->em->getRepository(TeamCategory::class)->findAll());
15411541
$backgroundColors = array_merge($backgroundColors, ['#FFFF99']);
15421542
return ['backgroundColors' => $backgroundColors];

webapp/templates/base.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<link rel="stylesheet" href="{{ asset("css/bootstrap.min.css") }}">
1111
<link rel="stylesheet" href="{{ asset("css/fontawesome-all.min.css") }}">
12-
<link rel="stylesheet" href="{{ path('get_dynamic_css') }}">
12+
<link rel="stylesheet" href="{{ path('scoreboard_category_color_css') }}">
1313
<script src="{{ asset("js/jquery.min.js") }}"></script>
1414
<script src="{{ asset("js/jquery.debounce.min.js") }}"></script>
1515
<script src="{{ asset("js/bootstrap.bundle.min.js") }}"></script>

0 commit comments

Comments
 (0)