From 8391e00864daf8e2125b77b1f38f9a3d1552a648 Mon Sep 17 00:00:00 2001 From: Nicky Gerritsen Date: Sat, 1 Mar 2025 09:55:32 +0000 Subject: [PATCH] SHow medal and rank below each other on mobile scoreboard --- .../partials/scoreboard_table.html.twig | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/webapp/templates/partials/scoreboard_table.html.twig b/webapp/templates/partials/scoreboard_table.html.twig index f631862738..3842a4bb28 100644 --- a/webapp/templates/partials/scoreboard_table.html.twig +++ b/webapp/templates/partials/scoreboard_table.html.twig @@ -390,15 +390,10 @@ {% endif %} {% if enable_ranking %} - - {# Only print rank when score is different from the previous team #} - {% if not displayRank %} - ? - {% elseif previousTeam is null or scoreboard.scores[previousTeam.teamid].rank != score.rank %} - {{ score.rank }} - {% else %} + + {% if medalsEnabled and medalColor != '' %} + {% endif %} - {% set previousTeam = score.team %} {% endif %} @@ -486,6 +481,18 @@ {% endif %} + + {# Only print rank when score is different from the previous team #} + + {% if not displayRank %} + ? + {% elseif previousTeam is null or scoreboard.scores[previousTeam.teamid].rank != score.rank %} + {{ score.rank }} + {% else %} + {% endif %} + + {% set previousTeam = score.team %} + {% if showAffiliationLogos %} {% set problemSpan = 3 %} {% else %}