diff --git a/webapp/src/Service/StatisticsService.php b/webapp/src/Service/StatisticsService.php index e54ca4008d..9e09d1401a 100644 --- a/webapp/src/Service/StatisticsService.php +++ b/webapp/src/Service/StatisticsService.php @@ -355,8 +355,14 @@ public function getProblemStats( $results) ? ($results['correct'] / count($judgings)) * 100.0 : 0; $misc['teams_correct_percentage'] = count($teamsAttempted) > 0 ? (count($teamsCorrect) / count($teamsAttempted)) * 100.0 : 0; + $contestProblem = $this->em->getRepository(ContestProblem::class)->findOneBy([ + 'contest' => $contest, + 'problem' => $problem, + ]); + return [ 'contest' => $contest, + 'contest_problem' => $contestProblem, 'problem' => $problem, 'timelimit' => $problem->getTimelimit(), 'submissions' => $submissions, diff --git a/webapp/templates/jury/analysis/contest_overview.html.twig b/webapp/templates/jury/analysis/contest_overview.html.twig index 8f0aad49b6..bfe2fe8ac4 100644 --- a/webapp/templates/jury/analysis/contest_overview.html.twig +++ b/webapp/templates/jury/analysis/contest_overview.html.twig @@ -138,7 +138,7 @@ $(function() { {% set id=p.probid %} {{ id }} - {{ p.shortname ~ " - " ~ p.problem.name }} + {{ p | problemBadge }} {{ p.problem.name }} {{ p.problem.timelimit }} {{ p.problem.memlimit|default('default') }} {{ misc.problem_num_testcases[id] }} diff --git a/webapp/templates/jury/analysis/problem.html.twig b/webapp/templates/jury/analysis/problem.html.twig index 036946b5f8..76ad944f10 100644 --- a/webapp/templates/jury/analysis/problem.html.twig +++ b/webapp/templates/jury/analysis/problem.html.twig @@ -17,7 +17,7 @@ height: 100%; } -/* Don't show x-axis ticks/ticklines for max runtimes chart*/ +/* Don't show x-axis ticks/ticklines for max runtimes chart. */ #maxruntime .nv-x.nv-axis .tick { display: none; } @@ -25,7 +25,7 @@ {% endblock %} {% block content %} -

Problem {{ problem.probid }}: {{ problem.name }}

+

Problem {{ problem.probid }}: {{ contest_problem | problemBadge }} {{ problem.name }}

{% include 'jury/partials/analysis_filter.html.twig' %}