Skip to content

Commit 86b272b

Browse files
meisterTvmcj
authored andcommitted
Replace medals legend with actual medals in the scoreboard.
1 parent 1b1261d commit 86b272b

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

webapp/public/style_domjudge.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ img.affiliation-logo {
280280
.score_incorrect { background: #e87272; }
281281
.score_pending { background: #6666ff; }
282282

283-
.gold-medal { background-color: #eec710 }
284-
.silver-medal { background-color: #aaa }
285-
.bronze-medal { background-color: #c08e55 }
283+
.gold-medal { color: #eec710 }
284+
.silver-medal { color: #aaa }
285+
.bronze-medal { color: #c08e55 }
286286

287287
#scoresolv,#scoretotal,#scoresolvmobile,#scoretotalmobile { width: 2.5em; }
288288
.scorenc,.scorett,.scorepl { text-align: center; width: 2ex; }

webapp/templates/partials/scoreboard_table.html.twig

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@
135135
{% endif %}
136136
<tr class="{{ classes | join(' ') }}" data-team-id="{{ score.team.teamid }}">
137137
{% if enable_ranking %}
138-
<td class="scorepl {{medalColor}}">
138+
<td class="scorepl">
139+
{% if medalColor != '' %}
140+
<i class="fa fa-medal {{medalColor}}" style="font-size: 1.5rem;"></i>
141+
{% endif %}
139142
{# Only print rank when score is different from the previous team #}
140143
{% if not displayRank %}
141144
?
@@ -562,23 +565,6 @@
562565
</tbody>
563566
</table>
564567
{% endif %}
565-
566-
{% if medalsEnabled %}
567-
<table class="d-none d-md-table scoreboard scorelegend {% if jury %}scoreboard_jury{% endif %}">
568-
<thead>
569-
<tr>
570-
<th scope="col">Medals {% if not scoreboard.freezeData.showFinal %}(tentative){% endif %}</th>
571-
</tr>
572-
</thead>
573-
<tbody>
574-
{% for medalType in ['Gold', 'Silver', 'Bronze'] %}
575-
<tr class="{{ medalType | lower }}-medal">
576-
<td>{{ medalType }} Medal</td>
577-
</tr>
578-
{% endfor %}
579-
</tbody>
580-
</table>
581-
{% endif %}
582568
{% endif %}
583569
584570
<script>

0 commit comments

Comments
 (0)