Skip to content

Commit b613a4f

Browse files
committed
Rename as suggested by Nicky
1 parent 6a50035 commit b613a4f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

webapp/src/Controller/PublicController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ 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');
107107
$response->setContent($this->renderView('public/dynamic.css.twig', $this->dj->getDynamicCSS()));
108-
return $response;
108+
return $response;
109109
}
110110

111111
/**

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)