Matchcenter: Tabelle vor dem 1. Spieltag + Testspiele kennzeichnen

Die Tabelle der Frauenmannschaft sah kaputt aus (zehn Mannschaften auf Platz 1,
alle grün als Aufstiegszone, überall 0), obwohl sie korrekt war: die Liga
startet erst am 06.09., und das einzige Ergebnis war ein Freundschaftsspiel.
Beides kommt so vom BFV — vor dem ersten Spieltag liefert die API jeder
Mannschaft Rang 1 und dieselbe Zone.

league-table erkennt das jetzt an der Summe der gespielten Spiele: Rangspalte
zeigt „–", Zonenfarben und Legende entfallen, darüber steht der Hinweis, dass
ab dem 1. Spieltag gewertet wird. Tabellen mit laufender Saison (Kreisklasse)
bleiben unverändert.

Spielzeilen tragen zusätzlich „Freundschaftsspiel" (match_competition_label),
damit sichtbar ist, warum ein Testspiel-Ergebnis nicht in der Tabelle steht.
Ligaspiele bleiben unbeschriftet — die Sektion nennt die Liga schon.

Enthält außerdem den Rahmen um den Tabellen-Scroller (table-scroll-frame),
der im Arbeitsstand lag.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-27 00:40:44 +02:00
parent 66c402d9f7
commit 68c3b51c41
3 changed files with 37 additions and 4 deletions

View File

@@ -34,7 +34,11 @@ $isPrevious = (bool) ($is_previous ?? false);
<h3 class="visually-hidden">Nächste Spiele</h3>
<ul class="match-list">
<?php foreach ($next as $m): ?>
<?php component('match-row', ['match' => $m]); ?>
<?php component('match-row', [
'match' => $m,
// Kennzeichnet Testspiele — sie zählen nicht in der Tabelle.
'meta' => match_competition_label((string) ($m['competition'] ?? '')),
]); ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
@@ -42,7 +46,11 @@ $isPrevious = (bool) ($is_previous ?? false);
<h3 class="visually-hidden">Letzte Ergebnisse</h3>
<ul class="match-list">
<?php foreach ($results as $m): ?>
<?php component('match-row', ['match' => $m]); ?>
<?php component('match-row', [
'match' => $m,
// Kennzeichnet Testspiele — sie zählen nicht in der Tabelle.
'meta' => match_competition_label((string) ($m['competition'] ?? '')),
]); ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>