fix: Füge Farbkennzeichnung für exakten Tipp mit Joker hinzu

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
torsten 2026-10-04 06:14:07 +02:00
parent 2127a40b9e
commit 17c641d011
2 changed files with 19 additions and 3 deletions

View file

@ -17,6 +17,7 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
.col_exact { background-color: #28a745 !important; color: white; } /* Exaktes Ergebnis */
.col_diff { background-color: #ffc107 !important; } /* Richtige Tordifferenz */
.col_tendenz { background-color: #17a2b8 !important; color: white; } /* Richtige Tendenz */
.col_joker_exact { background-color: #6f42c1 !important; color: white; } /* Exaktes Ergebnis mit Joker */
.round-filter { margin-bottom: 20px; }
.joker-icon { font-size: 0.7em; vertical-align: top; }
th.game-header { white-space: normal; } /* Erlaubt Umbruch im Header */
@ -69,8 +70,15 @@ if (!isset($currentSeason) || !isset($ranking) || !isset($games) || !isset($allR
<td><strong><?php echo $entry['score']; ?></strong></td>
<td><?php echo $entry['round_score']; ?></td>
<?php foreach ($games as $game): ?>
<?php $tipp = $entry['tipps'][$game['id']]; ?>
<td class="tipp-cell <?php echo htmlspecialchars($tipp['color']); ?>">
<?php
$tipp = $entry['tipps'][$game['id']];
$td_class = $tipp['color'];
// Spezielle Farbe für exakten Tipp mit Joker
if ($td_class === 'col_exact' && $tipp['is_joker']) {
$td_class = 'col_joker_exact';
}
?>
<td class="tipp-cell <?php echo htmlspecialchars($td_class); ?>">
<span title="Dein Tipp: <?php echo htmlspecialchars($tipp['text']); ?>">
<?php echo $tipp['points']; ?>
</span>