<%=h @contest.name %>

Details

From-to:
<%= longdate @contest.start %>
<%= longdate @contest.end %>

Rules:
<%= namelink @contest.rules %>

Status:
<%= @contest.statuses[@contest.status] %>

Default:
Sunday: <%= h @contest.default_time.strftime("%H:%M") %>

<% if @contest.contest_type == Contest::TYPE_LADDER %> <%= link_to "Scoring", "/contests/#{@contest}/score" %> <% end %> <% if cuser and cuser.admin? %> <%= link_to 'Edit', edit_contest_path(@contest) %> <% end %>
<% if @contest.contest_type == Contest::TYPE_BRACKET %> <%= render :partial => "bracket", :locals => {:contest => @contest} %> <% else %> <%= render :partial => "normal" %> <% end %>

Matches Played

<% if @contest.weeks.count > 0 %> <% @contest.weeks.ordered.each do |week| %> <% next if week.matches.count == 0 %> <% if @contest.contest_type == Contest::TYPE_LADDER %> <% end %> <% week.matches.realfinished.ordered.reverse_each do |match| %> <% if @contest.contest_type == Contest::TYPE_LADDER %> <% end %> <% end %> <% end %>
<%= week.name %> Date ScorePoints
<%= namelink match.contester1.team if match.contester1 %> vs <%= namelink match.contester2.team if match.contester1 %> <%= shorttime match.match_time %> <%= link_to match, :class => "bold #{match.score_color}" do %> <%= h match.score1 %> - <%= h match.score2 %> <% end %> <%= match.points1 %> / <%= match.points2 %>
<% else %> <% if @contest.contest_type == Contest::TYPE_LADDER %> <% end %> <% @contest.matches.realfinished.ordered.each do |match| %> <% if @contest.contest_type == Contest::TYPE_LADDER %> <% end %> <% end %>
Teams Date ScorePoints
<%= namelink match.contester1.team %> vs <%= namelink match.contester2.team %> <%= shorttime match.match_time %> <%= link_to(match) do %> <%= h match.score1 %> - <%= h match.score2 %> <% end %> <%= match.points1 %> / <%= match.points2 %>
<% end %> <% if @contest.matches.unfinished.ordered.count > 0 %>

Matches to be played

<% @contest.matches.unfinished.ordered.reverse_each do |match| %> <% end %>
Teams Date
<%= namelink match.contester1.team if match.contester1 %> vs <%= namelink match.contester2.team if match.contester2 %> <%= link_to shorttime(match.match_time), match %>
<% end %>
<% @contest.preds_with_score.each do |prediction| %> <% end %>
User Result
<%= namelink prediction.user %> <%= prediction.correct %> / <%= prediction.total %> correct (<%= prediction.score.to_f.round(2) %>%)
    <% @contest.maps.each do |map| %>
  • <%= map %>
  • <% end %>