<%= tournament.name %> - Round <%= round[:round_number] %>

Status: <%= round[:status] %>

Matchups

<% if matchups.any? %> <% matchups.each do |matchup| %> <% team_1 = teams.find { |t| t.id == matchup[:team_1_id] } %> <% team_2 = teams.find { |t| t.id == matchup[:team_2_id] } %> <% winner = teams.find { |t| t.id == matchup[:winner_team_id] } %> <% end %>
Position Team 1 vs Team 2 Winner Actions
<%= matchup[:bracket_position] %> <%= team_1&.team_name || 'BYE' %> vs <%= team_2&.team_name || 'BYE' %> <%= winner&.team_name || '-' %> <% if matchup[:match_id].nil? %> Create Match <% else %> View Match <% end %>
<% else %>

No matchups scheduled for this round.

<% end %>

Back to Tournament