<% if @bid.reward_type == 3%> <%= form_tag(:controller => 'bids', :action => "show_project", :method => :get) do %>
<%= l(:label_task_plural)%>
<% end %> <% end %> <% bidding_project.each do |b_project|%> <% if b_project.project %>
<%= image_tag(url_to_avatar(b_project.project), :class => 'avatar3') %>
<% if ((User.current.id == @bid.author_id) && (@bid.deadline > Date.today))||User.current.admin %> <% end %>
<%= link_to(b_project.project.name, project_path(b_project.project)) %> <% if @bid.reward_type == 2 %> <%= l(:label_joined_contest)%> <% end %> <% if @bid.reward_type == 1 %> <%= l(:label_join_bidding)%> <% end %> <%= l(:label_system_grade) %>:<%= (b_project.project.project_status.nil? ? 0.0 : b_project.project.project_status.grade) unless (b_project.project.project_status.nil? && b_project.project.nil?) %> <% if get_prize(b_project).nil? or get_prize(b_project) == "" %> <% if @bid.deadline < Date.today %> <%= l(:label_noawards)%> <% end %> <% else %> <% case @bid.reward_type %> <% when 1 %> <% case get_prize(b_project) %> <% when '6' %> <%= image_tag("/images/bid/win_bid.png")%> <% when '7' %> <%= image_tag("/images/bid/candidate.png")%> <% when '8' %> <%= image_tag("/images/bid/obsolete.png")%> <% end %> <% when 2 %> <% case get_prize(b_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 %> <% when 3 %> <% case get_prize(b_project) %> <% when '10' %> <%= image_tag("/images/bid/A.jpg")%> <% when '11' %> <%= image_tag("/images/bid/B+.jpg")%> <% when '12' %> <%= image_tag("/images/bid/B.jpg")%> <% when '13' %> <%= image_tag("/images/bid/C+.jpg")%> <% when '14' %> <%= image_tag("/images/bid/C.jpg")%> <% when '15' %> <%= image_tag("/images/bid/D+.jpg")%> <% when '16' %> <%= image_tag("/images/bid/D.jpg")%> <% when '17' %> <%= image_tag("/images/bid/E+.png")%> <% when '18' %> <%= image_tag("/images/bid/E.png")%> <% when '19' %> <%= image_tag("/images/bid/F.jpg")%> <% end %> <% end %> <% end %> <%= toggle_link '评价', b_project.id.to_s %>
<%= b_project.project.description %>
<%= format_time b_project.created_at%>
<% if Time.parse(@bid.deadline.to_s) < Time.parse(b_project.created_at.to_s) %> 迟交 <% end %>
<% if @bid.reward_type == 3 %> <% else %> <% end %>
<% if (im_watching_student_id? @bid) && b_project.user.user_extensions.identity.to_i.eql?(1) %> <%= l(:label_bidding_user_studentcode) %> : <%= b_project.user.user_extensions.student_id %> <% end %>
<%= l(:label_bidding_user_homework) %> : <% unless b_project.user.nil? %> <%= link_to(b_project.user.lastname+b_project.user.firstname, user_path(b_project.user)) %> <% end %>
<%= l(:label_bidding_reason_homewrok) %> : <%= b_project.description %>
<% if @bid.reward_type == 2%> <%= l(:label_contest_user) %> <% end %> <% if @bid.reward_type == 1 %> <%= l(:label_bidding_user) %> <% end %> <% unless b_project.user.nil? %> <%= b_project.user.lastname %><%= b_project.user.firstname %> <% end %>

<% if (im_watching_student_id? @bid) && b_project.user.user_extensions.identity.to_i.eql?(1) %> <%= l(:label_bidding_user_studentcode) %> : <%= b_project.user.user_extensions.student_id %> <% end %>

<% if @bid.reward_type == 2%> <%= l(:label_contest_reason) %> <% end %> <% if @bid.reward_type == 1 %> <%= l(:label_bidding_reason) %> <% end %> <%= b_project.description %>
<% end %> <% end %>