<% contesting_project.each do |c_project|%> <% if c_project.project %>
<%= image_tag(url_to_avatar(c_project.project), :class => 'avatar3') %>
<%= link_to(c_project.project.name, project_path(c_project.project)) %> <%= l(:label_joined_contest)%> <%= l(:label_system_grade) %>:<%= (c_project.project.project_status.nil? ? 0.0 : c_project.project.project_status.grade) unless (c_project.project.project_status.nil? && c_project.project.nil?) %> <% if get_prize(c_project).nil? or get_prize(c_project) == "" %> <% if @contest.deadline < Date.today %> <%= l(:label_noawards)%> <% end %> <% else %> <% case get_prize(c_project) %> <% when '-1' %> <%= image_tag("/images/bid/special_reward.png")%> <% when '0' %> <%= image_tag("/images/bid/first_reward.png")%> <% when '1' %> <%= image_tag("/images/bid/second_reward.png")%> <% when '2' %> <%= image_tag("/images/bid/third_reward.png")%> <% when '3' %> <%= image_tag("/images/bid/forth_reward.png")%> <% when '4' %> <%= image_tag("/images/bid/fifth_reward.png")%> <% when '5' %> <%= image_tag("/images/bid/qualified.png")%> <% end %> <% end %>
<%= c_project.project.description %>
<%= format_time c_project.created_at%>
<%= l(:label_contest_user) %> <% unless c_project.user.nil? %> <%= c_project.user.lastname %><%= c_project.user.firstname %> <% end %>
<%= l(:label_contest_reason) %> <%= c_project.description %>
<% end %> <% end %>