mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
16 lines
600 B
Text
16 lines
600 B
Text
<h1 class="title">Current Contests</h1>
|
|
|
|
<% @contests.each do |contest| %>
|
|
<h3><%= link_to contest.name, contest %></h3>
|
|
|
|
<% 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 %>
|