Allinea stato e titolo replay del tabellone al risultato reale.

Una gara con punteggio non resta più «In programma» solo perché l'orario è futuro, e i replay usano le squadre del match invece della squadra di trasmissione.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-06 09:15:10 +02:00
co-authored by Cursor
parent 097e55df79
commit b09e83db09
7 changed files with 109 additions and 8 deletions
@@ -52,8 +52,11 @@
<span class="replay-card__play" aria-hidden="true"></span>
</div>
<div class="replay-card__body">
<strong class="replay-card__title"><%= rec.title.presence || match.matchup_label %></strong>
<p class="replay-card__meta"><%= match.matchup_label %></p>
<% phase = [match.tournament_round&.name, match.tournament_group&.name].compact.first %>
<strong class="replay-card__title"><%= match.matchup_label %></strong>
<p class="replay-card__meta">
<%= [phase, rec.recorded_at_or_fallback && l(rec.recorded_at_or_fallback, format: :short)].compact.join(" · ") %>
</p>
</div>
<% end %>
<% end %>