Current Contests
<% @contests.each do |contest| %>
<%= link_to contest.name, contest %>
<% if contest.contest_type == Contest::TYPE_BRACKET %>
<%= render partial: "bracket", locals: { contest: contest } %>
<% elsif contest.contest_type == Contest::TYPE_LADDER %>
<%= render partial: "contesters/ladder",
locals: { actions: true, contest: contest } %>
<% else %>
<%= render partial: "contesters/list",
locals: { contesters: contest.contesters.active.ordered,
actions: true, contest: contest } %>
<% end %>
<% end %>