提交
<% if @homework_commons.empty? %>
目前尚未发布提交
<% else %> <% @homework_commons.each_with_index do |homework_common,index|%>
<%= link_to "提交#{@homework_commons.count - index}:#{homework_common.name}",contestant_works_path(:work => homework_common.id),:target=>"_blank"%>
<% end%> <% end %>
<%= render :partial => 'work_search_form',:locals => {:contest=>@contest} %>
<% if @is_teacher%>
<%= labelled_form_for @new_homework,:method => "post" do |f| %>
<%= render :partial => 'contest_work_form', :locals => { :homework => @new_homework,:f => f,:edit_mode => false,:select_course => false } %>
<% end%>
<% end%>
<%= render :partial => 'work_index_list', :locals => {:homework_commons => @homeworks,:contest_id => @contest.id} %>