<%= render_flash_messages %>
<%= l(:label_wellmeaning_intimation_contentone) %>
1) <%= l(:label_wellmeaning_intimation_contenttwo) %>
2) <%= l(:label_wellmeaning_intimation_contentthree) %>
<% if User.current.logged? %>
<%= l(:label_attending_contest) %>: <%= link_to l(:label_new_attendingcontest_work), "javascript:void(0);", onclick: "$('#put-project-form').toggle();" %>
<% else %>
<%= l(:label_user_login_attending_contest) %> <%= link_to l(:label_user_login_new), signin_path %>
<% end %>
<% if @contest.id == 2 or @contest.id == 3 or @contest.id == 6 %> <% @contesting_project.sort.reverse.each do |c_project| %> <% if c_project.project %>
<%= l(:label_contest_work) %> : <%= link_to(c_project.project.name, project_path(c_project.project), :target => '_blank') %>
<% if get_prize(c_project).nil? or get_prize(c_project) == "" %> <% if @contest.deadline < Date.today %> <%= l(:label_noawards) %> <% else %> <%= l(:label_noawards_current) %> <% 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 %> <% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %> <%= toggle_link l(:label_reward), c_project.id.to_s %> <% end %>

<%= l(:label_profile) %>: <%= c_project.project.description.truncate(90, omission: '...') %>
<%= l(:label_attendingcontest_time) %> :<%= format_time c_project.created_at %> <%= l(:label_attendingcontest_spoksman) %> :<%= c_project.user.name %>
<% end %>
<% end %> <% else %> <% @contesting_softapplication.each do |c_softapplication| %> <% if c_softapplication.softapplication %>
<%= l(:label_contest_work) %>: <%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication), :target => '_blank') %>
<%= l(:label_profile) %>: <%= c_softapplication.softapplication.description.truncate(90, omission: '...') %>
<%= l(:label_attendingcontest_time) %> :<%= format_time c_softapplication.created_at %> <%= l(:label_attendingcontest_spoksman) %> :<%= c_softapplication.softapplication.user.name %>
<%= l(:label_final_scores) %> :<%= c_softapplication.softapplication.average(:quality).try(:avg).try(:round, 2).to_i.to_s %> 分 <% if get_prize(c_softapplication).nil? or get_prize(c_softapplication) == "" %> <% if @contest.deadline < Date.today %> <%= l(:label_noawards) %> <% else %> <%= l(:label_noawards_current) %> <% end %> <% else %> <% case get_prize(c_softapplication) %> <% 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 %> <% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %>
<%= toggle_link '评奖', c_softapplication.id.to_s %>
<% end %>
<% end %>
<% end %> <% end %>