Skip to content

Commit 14023ca

Browse files
committed
Show flags on the pre-contest page if they are enabled.
1 parent 81f6f44 commit 14023ca

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

webapp/src/Service/ScoreboardService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,7 @@ public function getGroupedAffiliations(Contest $contest): array
779779
$affiliations[$teamaffil->getName()] = [
780780
'id' => $teamaffil->getExternalid(),
781781
'name' => $teamaffil->getName(),
782+
'country' => $teamaffil->getCountry(),
782783
];
783784
}
784785
}

webapp/templates/partials/scoreboard.html.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@
6868
<ul class="list-group list-group-flush">
6969
{% for affiliation in affiliations %}
7070
<li class="list-group-item">
71+
{% if showFlags %}
72+
{{ affiliation.country|countryFlag }}
73+
{% endif %}
7174
{% set affiliationLogo = affiliation.id | assetPath('affiliation') %}
7275
{% if affiliationLogo %}
7376
<img loading="lazy" class="affiliation-logo"

0 commit comments

Comments
 (0)