Skip to content

Commit 3bb0492

Browse files
Fix columns for hearts on non public scoreboards
1 parent bd9dc7a commit 3bb0492

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

webapp/templates/partials/scoreboard_summary.html.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
{% set summaryColspan = summaryColspan + 1 %}
1212
{% endif %}
1313
{% endif %}
14+
{% if public %}
15+
{% set summaryColspan = summaryColspan + 1 %}
16+
{% endif %}
1417
<td class="scoresummary" title="Summary" colspan="{{ summaryColspan }}">Summary</td>
1518
{% if enable_ranking %}
1619
{% if scoreboard.showPoints %}

webapp/templates/partials/scoreboard_table.html.twig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
{% if showAffiliationLogos %}
3535
{% set teamColspan = teamColspan + 1 %}
3636
{% endif %}
37+
{% if not public %}
38+
{% set teamColspan = teamColspan - 1 %}
39+
{% endif %}
3740
3841
{# output table column groups (for the styles) #}
3942
<colgroup>
@@ -48,6 +51,9 @@
4851
{% else %}
4952
<col/>
5053
{% endif %}
54+
{% if public %}
55+
<col id="scorehearts"/>
56+
{% endif %}
5157
{% if showAffiliationLogos %}
5258
<col id="scorelogos"/>
5359
{% endif %}

0 commit comments

Comments
 (0)