From b420a73b1e1e43dcf23770d752603eed9d3df4e5 Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Sat, 1 Mar 2025 21:41:17 +0000 Subject: [PATCH] Do not display empty problems table. --- webapp/templates/jury/problems.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/templates/jury/problems.html.twig b/webapp/templates/jury/problems.html.twig index 5dd4c6343b..64ae88e304 100644 --- a/webapp/templates/jury/problems.html.twig +++ b/webapp/templates/jury/problems.html.twig @@ -14,9 +14,9 @@

Problems in contest {{ current_contest.name }}

{% if problems_current is empty %} There are no problems in this contest. + {% else %} + {{ macros.table(problems_current, table_fields) }} {% endif %} - - {{ macros.table(problems_current, table_fields) }} {% endif %} {% if problems_other is not empty %}