diff --git a/webapp/public/style_domjudge.css b/webapp/public/style_domjudge.css
index a9c5f89168..7d824d6a71 100644
--- a/webapp/public/style_domjudge.css
+++ b/webapp/public/style_domjudge.css
@@ -198,6 +198,10 @@ del {
.scoreboard td.no-border, .scoreboard th.no-border {
border: none;
}
+.scoreboard td.rank {
+ padding-left: 0.3em;
+ padding-right: 0.3em;
+}
.scoreboard td.score_cell {
min-width: 4.2em;
border-right: none;
diff --git a/webapp/templates/partials/scoreboard_summary.html.twig b/webapp/templates/partials/scoreboard_summary.html.twig
index 4ec616b253..65666ef567 100644
--- a/webapp/templates/partials/scoreboard_summary.html.twig
+++ b/webapp/templates/partials/scoreboard_summary.html.twig
@@ -1,12 +1,15 @@
{% if limitToTeamIds is null %}
{% if showTeamSubmissions or jury %}
- {% set summaryColspan = 3 %}
+ {% set summaryColspan = 2 %}
{% if showAffiliationLogos %}
{% set summaryColspan = summaryColspan + 1 %}
{% endif %}
- {% if not enable_ranking %}
- {% set summaryColspan = summaryColspan - 1 %}
+ {% if enable_ranking %}
+ {% set summaryColspan = summaryColspan + 1 %}
+ {% if medalsEnabled %}
+ {% set summaryColspan = summaryColspan + 1 %}
+ {% endif %}
{% endif %}
Summary |
{% if enable_ranking %}
diff --git a/webapp/templates/partials/scoreboard_table.html.twig b/webapp/templates/partials/scoreboard_table.html.twig
index e3eaad7b22..0d08d415ed 100644
--- a/webapp/templates/partials/scoreboard_table.html.twig
+++ b/webapp/templates/partials/scoreboard_table.html.twig
@@ -38,6 +38,9 @@
{# output table column groups (for the styles) #}
{% if enable_ranking %}
+ {% if medalsEnabled %}
+
+ {% endif %}
{% endif %}
{% if showFlags %}
@@ -66,7 +69,7 @@
{% if enable_ranking %}
-
- {% if medalColor != '' %}
-
- {% endif %}
+ {% if medalsEnabled %}
+ |
+ {% if medalColor != '' %}
+
+ {% endif %}
+ |
+ {% endif %}
+
{# Only print rank when score is different from the previous team #}
{% if not displayRank %}
?
|