File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -780,6 +780,7 @@ public function getGroupedAffiliations(Contest $contest): array
780780 'id ' => $ teamaffil ->getExternalid (),
781781 'name ' => $ teamaffil ->getName (),
782782 'country ' => $ teamaffil ->getCountry (),
783+ 'color ' => $ category ->getColor (),
783784 ];
784785 }
785786 }
Original file line number Diff line number Diff line change 6767 <div class =" card-body" >
6868 <ul class =" list-group list-group-flush" >
6969 {% for affiliation in affiliations %}
70- <li class =" list-group-item" >
70+ {% if affiliation .color is null %}
71+ {% set color = " #FFFFFF" %}
72+ {% set colorClass = " _FFFFFF" %}
73+ {% else %}
74+ {% set colorClass = affiliation .color | replace({" #" : " _" }) %}
75+ {% endif %}
76+ <li class =" list-group-item cl{{ colorClass }}" >
7177 {% if showFlags %}
7278 {{ affiliation .country | countryFlag }}
7379 {% endif %}
You can’t perform that action at this time.
0 commit comments