<%= 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( event ) %> <% end %> <% if league.country.present? %> <%= flag_for_country( league.country) %> <%= link_to_country( league.country ) %> (<%= league.country.code %>) <% end %>