<% if contester.trend == Contester::TREND_UP %>
<%= image_tag "/images/icons/up.gif" %> |
<% elsif contester.trend == Contester::TREND_DOWN %>
<%= image_tag "/images/icons/down.gif" %> |
<% elsif contester.trend == Contester::TREND_FLAT %>
<%= image_tag "/images/icons/flat.gif" %> |
<% else %>
|
<% end %>
<%= 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 actions %>
<% 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 %>
|
<% end %>
<% end %>