<% if actions %> <% end %> <% contesters.each do |contester| %> <% if contester.trend == Contester::TREND_UP %> <% elsif contester.trend == Contester::TREND_DOWN %> <% elsif contester.trend == Contester::TREND_FLAT %> <% else %> <% end %> <% if actions %> <% end %> <% end %>
    Team Score Win Loss DrawActions
<%= image_tag "/images/icons/up.gif" %><%= image_tag "/images/icons/down.gif" %><%= image_tag "/images/icons/flat.gif" %><%= flag contester.team.country %> <%= link_to (h contester.team.name), contester %> <%= image_tag "/images/icons/gold.gif" if contester == contester.contest.winner %> <%= h contester.total_score %> <%= h contester.win %> <%= h contester.loss %> <%= h contester.draw %> <% if @friendly %> <% challenge = Challenge.new challenge.contester1 = @friendly challenge.contester2 = contester %> <% if challenge.can_create? cuser %> <%= link_to 'C', :controller => 'challenges', :id => contester, :action => 'new' %> <% end %> <% end %> <% if cuser and cuser.admin? %> <%= link_to 'E', edit_contester_path(contester) %> <%= link_to 'D', contester, :confirm => 'Are you sure?', :method => :delete %> <%= link_to 'R', :controller => "contesters", :action => "recalc", :id => contester %> <% end %>