Skip to content

Commit 3adc238

Browse files
Move colgroups to correct position
1 parent 95deac3 commit 3adc238

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

webapp/templates/partials/scoreboard_table.html.twig

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
3131
<table class="d-none d-md-table scoreboard center {% if jury %}scoreboard_jury{% endif %}">
3232
33+
{% set teamColspan = 2 %}
34+
{% if showAffiliationLogos %}
35+
{% set teamColspan = teamColspan + 1 %}
36+
{% endif %}
37+
3338
{# output table column groups (for the styles) #}
3439
<colgroup>
3540
{% if enable_ranking %}
@@ -58,12 +63,6 @@
5863
{% endfor %}
5964
{% endif %}
6065
</colgroup>
61-
62-
{% set teamColspan = 2 %}
63-
{% if showAffiliationLogos %}
64-
{% set teamColspan = teamColspan + 1 %}
65-
{% endif %}
66-
6766
<thead>
6867
<tr class="scoreheader" data-static="{{ static }}">
6968
{% if enable_ranking %}
@@ -317,7 +316,6 @@
317316
</table>
318317
319318
<table class="d-md-none scoreboard center {% if jury %}scoreboard_jury{% endif %}">
320-
<thead>
321319
{# output table column groups (for the styles) #}
322320
<colgroup>
323321
{% if enable_ranking %}
@@ -338,6 +336,7 @@
338336
<col id="scoresolv"/>
339337
</colgroup>
340338
{% endif %}
339+
<thead>
341340
342341
{% set teamColspan = 2 %}
343342
{% if showAffiliationLogos %}

0 commit comments

Comments
 (0)