<% if contest %> <% else %> <% end %> <% unless defined? exclude_maps %> <% end %> <% if matches.first and matches.first.contest.contest_type == Contest::TYPE_LADDER %> <% end %> <% matches.each do |match| %> <% match.friendly = friendly %> <% if contest %> <% end %> <% unless defined? exclude_maps %> <% end %> <% if match.contest.contest_type == Contest::TYPE_LADDER %> <% end %> <% end %>
Contest OpponentOpponentDateMapsScorePoints
<%= namelink match.contest %> <%= namelink (match.get_opponent.team) %> <%= shorttime match.match_time %> <%= match.map1 %>, <%= match.map2 %> <%= link_to match, :class => "bold #{match.score_color}" do %> <% if friendly == match.contester1.team %> <%=h match.score1 %> - <%=h match.score2 %> <% else %> <%=h match.score2 %> - <%=h match.score1 %> <% end %> <% end %> <% if match.get_friendly(:points) > 0 %> <%= icon 'chevron-up' %> <% elsif match.get_friendly(:points) < 0 %> <%= icon 'chevron-down' %> <% end %> <%= match.get_friendly(:points) %>