<%= @event.full_title %>
<%= @event.teams.count %> Teams
<% @event.teams.each do |team| %>
<% if team.national? %>
<%= image_tag "flags/32x32/#{team.country.key}.png" %>
<%= link_to team.title, short_team_path( team ) %>
<%= "(#{team.code})" if team.code.present? %>
>
<%= team.country.continent.title if team.country.continent.present? %>
|
<% else %>
<%= link_to team.title, short_team_path( team ) %>
<%= "(#{team.code})" if team.code.present? %>
|
<%= team.title2 if team.title2.present? %>
|
<%= render_team_world_tree( team ) %>
|
<% end %>
<% end %>
<% if @event.groups.count > 0 %>
<%= @event.groups.count %> Groups
<% @event.groups.each_with_index do |group,i| %>
<% if i > 0 %>
•
<% end %>
<%= group.title %>
<% end %>
<% @event.groups.each do |group| %>
<%= group.title %> |
|
<% group.teams.each do |team| %>
<% if team.national? %>
<%= image_tag "flags/32x32/#{team.country.key}.png" %>
<% end %>
<%= link_to team.title, short_team_path( team ) %>
|
<% end %>
<% end %>
<% end %>
<%= @event.games.count %> Games
<% @event.rounds.each_with_index do |round,i| %>
<% if i > 0 %>
•
<% end %>
<%= round.title %>
<% end %>
<% @event.rounds.each do |round| %>
<%= round.title %>
<%= "/ #{round.title2}" if round.title2.present? %>
|
<% round.games.each do |game| %>
<%= render_game_date( game ) %>
<%= render_game_team1( game ) %>
<%= render_game_score( game ) %>
<%= render_game_team2( game ) %>
<%= "(#{game.group.title})" if game.group.present? %>
|
<%= render_game_flags( game ) %>
<% end %>
<% end %>