<% show_header = defined?(show_header) ? show_header : true %> <% if show_header %>

Possibility Report

<% end %> <% if @message %> <%=@message%> <% end %> <% db_entry_ids = @pool.user_entries.inject({}) {|h,e| h[e.name] = e.id; h} %> <% @stats.each do |stat| -%> <% end -%>
Entry Chance
for 1st
Highest
Place
Current
Score
Max
Score
Tie
Break
Champions for 1st
<%= link_to stat.entry.name, :controller => 'entry', :action => 'show', :id => db_entry_ids[stat.entry.name]%> <%="%5.2f" % (stat.times_champ * 100.0/pool.tournament_entry.picks.number_of_outcomes)%>% <%=stat.min_rank.ordinal%> <%=stat.entry.bracket.score_against(pool.tournament_entry.picks, pool.scoring_strategy)%> <%=stat.max_score%> <%=stat.entry.tie_breaker%> <% if stat.champs.size > 0 %> Detail <% stat.champs.sort_by{|k,v| -v}.each do |team, occurrences| -%> <%=team%> <%=number_with_delimiter(occurrences)%> (<%="%5.2f" % (occurrences.to_f * 100.0 / stat.times_champ)%>%)
<% end -%>
<% end -%>