<% state = tournament_public_board_state(match) %> <% live_session = tournament_public_live_session(match) %> <% recording = tournament_public_recording(match) %> <% score = tournament_public_score_label(match) %> <% if match.scheduled_at %> <%= match.scheduled_at.in_time_zone.strftime("%H:%M") %> <% else %> — <% end %> <%= match.court.presence || "—" %>
<%= tournament_team_chip(match.home_participant, name: match.home_display_name) %> <%= tournament_team_chip(match.away_participant, name: match.away_display_name) %>
<% if match.tournament_group || match.tournament_round %>

<%= [match.tournament_group&.name, match.tournament_round&.name].compact.join(" · ") %>

<% end %> <% if score.present? %> <%= score %> <% else %> — <% end %> <%= t("tournaments.page.state.#{state}") %> <% watch = tournament_public_watch_target(live_session) %> <% if watch %> <% url, label, html_opts = watch %> <%= link_to label, url, { class: "tournament-board__cta tournament-board__cta--live" }.merge(html_opts) %> <% elsif live_session %> <%= t("tournaments.page.no_media") %> <% elsif recording %> <%= link_to t("tournaments.page.watch_replay"), public_replay_path(recording.stream_session_id), class: "tournament-board__cta" %> <% else %> <%= t("tournaments.page.no_media") %> <% end %>