<%= Event.count %> Events

<% League.all.each do |league| %> <% if league.events.count > 0 %> <% end %> <% 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 %> <% if league.country.present? %> <%= image_tag "flags/24x24/#{league.country.key}.png" %> <%= link_to league.country.title, short_country_path(league.country) %> (<%= league.country.code %>) <% end %>