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
780
780
'id ' => $ teamaffil ->getExternalid (),
781
781
'name ' => $ teamaffil ->getName (),
782
782
'country ' => $ teamaffil ->getCountry (),
783
+ 'color ' => $ category ->getColor (),
783
784
];
784
785
}
785
786
}
Original file line number Diff line number Diff line change 67
67
<div class =" card-body" >
68
68
<ul class =" list-group list-group-flush" >
69
69
{% 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 }}" >
71
77
{% if showFlags %}
72
78
{{ affiliation .country | countryFlag }}
73
79
{% endif %}
You can’t perform that action at this time.
0 commit comments