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 %}