Matches Played
<% if @contest.weeks.count > 0 %>
<% @contest.weeks.ordered.each do |week| %>
<% next if week.matches.realfinished.size == 0 %>
<%= week.name %> |
Date |
Score |
<% if @contest.contest_type == Contest::TYPE_LADDER %>
Points |
<% end %>
<% week.matches.realfinished.ordered.reverse_each do |match| %>
<%= 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 %>
|
<% if @contest.contest_type == Contest::TYPE_LADDER %>
<%= match.points1 || 0 %> / <%= match.points2 || 0 %>
|
<% end %>
<% end %>
<% end %>
<% else %>
Teams |
Date |
Score |
<% if @contest.contest_type == Contest::TYPE_LADDER %>
Points |
<% end %>
<% @contest.matches.realfinished.ordered.each do |match| %>
<%= namelink match.contester1.team %>
vs
<%= namelink match.contester2.team %>
|
<%= shorttime match.match_time %>
|
<%= link_to(match) do %>
<%= h match.score1 %> - <%= h match.score2 %>
<% end %>
|
<% if @contest.contest_type == Contest::TYPE_LADDER %>
<%= match.points1 || 0 %> / <%= match.points2 || 0 %>
|
<% end %>
<% end %>
<% end %>
<% if @contest.matches.unfinished.ordered.count > 0 %>
Matches to be played
Teams |
Date |
<% @contest.matches.unfinished.ordered.reverse_each do |match| %>
<%= namelink match.contester1.team if match.contester1 %>
vs
<%= namelink match.contester2.team if match.contester2 %>
|
<%= link_to shorttime(match.match_time), match %>
|
<% end %>
<% end %>
User |
Result |
<% @contest.preds_with_score.each do |prediction| %>
<%= namelink prediction.user %> |
<%= prediction.correct %> / <%= prediction.total %> correct (<%= prediction.score.to_f.round(2) %>%) |
<% end %>
<% @contest.maps.each do |map| %>
- <%= map %>
<% end %>