<%=TOURNAMENT_TITLE%>

<% if Pool.active_pools.size > 0 %> <% Pool.active_pools.each do |pool| -%>
<%= pool.name %> <% if current_user && pool.user_id == current_user.id %>   <%= link_to '[Edit]', :controller => 'admin', :action => 'pool', :id => pool.id %> <%= link_to '[Entries]', :controller => 'admin', :action => 'entries', :id => pool.id %> <% end %> <%= link_to '[Leader Board]', :controller => 'reports', :action => 'show', :id => pool.id, :report => 'leader' %> <%= link_to '[Reports]', :controller => 'reports', :action => 'show', :id => pool.id %>
Starts: <%= pool.starts_at.to_date.to_formatted_s(:long)%> Pending Entries: <%= pool.pending_entries.size%> Total Entries: <%= pool.user_entries.size%>
Entry Fee: $<%=pool.fee%>
Payouts: <% pool.payouts.delete_if{|p| p.kind.blank?}.sort_by {|p| p.rank }.each do |p| -%> <%=p.rank != 'L' ? p.rank.to_i.ordinal : 'Last'%>: <%= p.kind if p.kind == '$'%><%=p.payout%><%=p.kind if p.kind != '$'%>   <% end -%>
Scoring: <%=pool.pool.scoring_strategy.description%>
<% if current_user -%> Entries for <%= current_user.login%>: <%= link_to pool.entries_for(current_user).size, :controller => 'entry', :action => 'index', :id => pool.id %> <% if pool.accepting_entries? -%> <%= link_to 'Add New Entry', :controller => 'entry', :action => 'new', :id => pool.id %> <% end -%>
<% else -%> To enter this pool, please <%= link_to 'login', login_path%> or <%= link_to 'signup', signup_path%> <% end -%>
<% end -%> <% else -%>
There are no active pools. Please come back in a bit or contact an administrator.
<% end -%>