From 117a375dcdafdf49bcd02c04fb98336567dc50cb Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Wed, 26 Feb 2025 21:37:46 +0000 Subject: [PATCH] Replace medals legend with actual medals in the scoreboard. --- webapp/public/style_domjudge.css | 6 ++--- .../partials/scoreboard_table.html.twig | 22 ++++--------------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/webapp/public/style_domjudge.css b/webapp/public/style_domjudge.css index 2bc90accf4..a9c5f89168 100644 --- a/webapp/public/style_domjudge.css +++ b/webapp/public/style_domjudge.css @@ -280,9 +280,9 @@ img.affiliation-logo { .score_incorrect { background: #e87272; } .score_pending { background: #6666ff; } -.gold-medal { background-color: #eec710 } -.silver-medal { background-color: #aaa } -.bronze-medal { background-color: #c08e55 } +.gold-medal { color: #eec710 } +.silver-medal { color: #aaa } +.bronze-medal { color: #c08e55 } #scoresolv,#scoretotal,#scoresolvmobile,#scoretotalmobile { width: 2.5em; } .scorenc,.scorett,.scorepl { text-align: center; width: 2ex; } diff --git a/webapp/templates/partials/scoreboard_table.html.twig b/webapp/templates/partials/scoreboard_table.html.twig index 1931b1cb85..e3eaad7b22 100644 --- a/webapp/templates/partials/scoreboard_table.html.twig +++ b/webapp/templates/partials/scoreboard_table.html.twig @@ -135,7 +135,10 @@ {% endif %} {% if enable_ranking %} - + + {% if medalColor != '' %} + + {% endif %} {# Only print rank when score is different from the previous team #} {% if not displayRank %} ? @@ -562,23 +565,6 @@ {% endif %} - - {% if medalsEnabled %} - - - - - - - - {% for medalType in ['Gold', 'Silver', 'Bronze'] %} - - - - {% endfor %} - -
Medals {% if not scoreboard.freezeData.showFinal %}(tentative){% endif %}
{{ medalType }} Medal
- {% endif %} {% endif %}