mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-30 22:41:33 +00:00
26 lines
867 B
Text
26 lines
867 B
Text
<% @contests.each do |contest| %>
|
|
<% next if contest.matches.finished.count == 0 %>
|
|
<div class="wide box">
|
|
<h2 class="center">
|
|
<%= namelink contest %>
|
|
</h2>
|
|
<div class="center">
|
|
<%= longdate contest.start %> - <%= longdate contest.end %>
|
|
</div>
|
|
|
|
<div class="wide centered">
|
|
<% 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: false, contest: contest } %>
|
|
<% else %>
|
|
<%= render :partial => "contesters/list", :locals => {:contesters => contest.contesters.active.ordered, :actions => false} %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="clear">
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<% end %>
|