| <%= t("tournaments.hub.played") %> | <%= t("tournaments.hub.won") %> | <%= t("tournaments.hub.lost") %> | <%= t("tournaments.hub.points") %> | |
|---|---|---|---|---|
| <%= idx + 1 %>. <%= tournament_team_chip(row.participant) %> | <%= row.played %> | <%= row.won %> | <%= row.lost %> | <%= row.points %> |
| <%= t("tournaments.hub.datetime") %> | <%= t("tournaments.hub.home") %> | <%= t("tournaments.hub.away") %> | <%= t("tournaments.hub.result") %> | <% if @writable %><% end %> |
|---|---|---|---|---|
| <%= match.scheduled_at ? l(match.scheduled_at, format: :short) : "—" %> |
<%= render "public/tournaments/match_side_select", match: match, side: :home, form_id: form_id %>
<% src = tournament_side_source_label(match, :home) %>
<% if src.present? && match.home_participant_id.blank? %>
<%= src %>
<% end %>
|
<%= render "public/tournaments/match_side_select", match: match, side: :away, form_id: form_id %>
<% src = tournament_side_source_label(match, :away) %>
<% if src.present? && match.away_participant_id.blank? %>
<%= src %>
<% end %>
|
<% if tournament_match_sides_locked?(match) %> <%= match.home_score %>–<%= match.away_score %> <% elsif @writable %> <%= number_field_tag :home_score, match.home_score, id: "ko_home_score_#{match.id}", form: form_id %> – <%= number_field_tag :away_score, match.away_score, id: "ko_away_score_#{match.id}", form: form_id %> <% else %> — <% end %> | <% if @writable %><%= submit_tag t("tournaments.hub.save_match"), form: form_id, class: "btn btn-secondary tournament-match-form__save" %> | <% end %>
<%= t("tournaments.hub.knockout_round_empty") %>
<% end %> <% end %>