<% is_teacher = User.current.admin_of_contest?(@contestwork.contest) || User.current.judge_of_contest?(@contestwork.contest) || User.current.admin? %> <% if @contestwork.work_type != 3 %> <% is_my_work = work.user == User.current%> <% else %> <% pro = @contestwork.contestant_work_projects.where(:user_id => User.current.id).first %> <% is_my_work = pro && pro.contestant_work_id == work.id%> <% end %> <% is_member_work = @contestwork.work_type == 3 && work.contestant_work_projects.empty? %> <% if !is_member_work %>
<% else %> --> <% end %>
<%= render :partial => 'contestant_work_score_records', :locals => {:student_work_scores => student_work_scores, :is_member_work => is_member_work} %>
收起