<%= image_tag "flags/24x24/#{@country.key}.png" %> <%= @country.title %> (<%= @country.code %>)

<%= @country.leagues.count %> Leagues

<% @country.leagues.each do |league| %> <% end %>
<%= league.key %> <%= league.title %> (<%= league.events.count %>) <% league.events.each_with_index do |event,index| %> <%= '•' if index > 0 %> <%= link_to event.season.title, short_event_path(event) %> <% end %>

<%= @country.teams.count %> Teams

<% @country.teams.each do |team| %> <% end %>
<%= team.key %> <%= link_to team.title, short_team_path( team ) %> <%= " | #{team.synonyms.split('|').join(' | ')}" if team.synonyms.present? %> <%= "(#{team.code})" if team.code.present? %> <%= team.title2 if team.title2.present? %>

<%= @country.regions.count %> Regions

<% @country.regions.each do |region| %> <% end %>
<%= region.key %> <%= region.title %> (<%= region.cities.count %>) <% region.cities.each_with_index do |city,index| %> <%= '•' if index > 0 %> <%= city.title %> <% end %>

<%= @country.cities.count %> Cities

<% @country.cities.each do |city| %> <% end %>
<%= city.key %> <%= city.title %> <%= " | #{city.synonyms.split('|').join(' | ')}" if city.synonyms.present? %> (<%= city.teams.count %>) <% city.teams.each_with_index do |team,index| %> <%= '•' if index > 0 %> <%= link_to team.title, short_team_path(team) %> <% end %>