Skip to content

Commit 940c6cb

Browse files
committed
Simulate team interaction on the jury team on previewpage
In case the jury member has a team this closer resemblances the final page.
1 parent 96dda98 commit 940c6cb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

webapp/src/Controller/Jury/ProblemController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,9 @@ public function indexAction(): Response
241241
#[Route(path: '/problemset', name: 'jury_problemset')]
242242
public function problemsetAction(StatisticsService $stats): Response
243243
{
244+
$teamId = $this->dj->getUser()->getTeam()?->getTeamid();
244245
return $this->render('jury/problemset.html.twig',
245-
$this->dj->getTwigDataForProblemsAction($stats, forJury: true));
246+
$this->dj->getTwigDataForProblemsAction($stats, teamId: $teamId, forJury: true));
246247
}
247248

248249
#[Route(path: '/{probId<\d+>}/samples.zip', name: 'jury_problem_sample_zip')]

webapp/templates/jury/problemset.html.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
problem_statement_path: 'jury_problem_statement',
1212
problem_attachment_path: 'jury_attachment_fetch',
1313
problem_sample_zip_path: 'jury_problem_sample_zip',
14-
show_jury_warning: not (current_contest.state.started ?? false)
14+
show_jury_warning: not (current_contest.state.started ?? false),
15+
team: team
1516
} %}
1617
{% endblock %}

0 commit comments

Comments
 (0)