<%= 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 '[Reports]', "/reports/#{pool.id}"%>
Starts: <%= pool.starts_at.to_date.to_formatted_s(:short)%>
Pending Entries: <%= pool.pending_entries.size%>
Total Entries: <%= pool.user_entries.size%>
<% 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'%> or <%= link_to 'signup', '/signup'%>
<% end -%>
There are no active pools. Please come back in a bit or contact an administrator.
<% end -%>