|
|
|
@ -2357,8 +2357,10 @@ module ApplicationHelper
|
|
|
|
|
if work.nil?
|
|
|
|
|
link_to "提交作品", new_student_work_path(:homework => homework.id),:class => 'c_blue'
|
|
|
|
|
else
|
|
|
|
|
if homework.homework_detail_manual && homework.homework_detail_manual.comment_status != 1 #匿评作业,且作业状态不是在开启匿评之前
|
|
|
|
|
if homework.homework_detail_manual && homework.homework_detail_manual.comment_status == 2 #匿评作业,且作业状态不是在开启匿评之前
|
|
|
|
|
link_to "作品匿评", student_work_index_path(:homework => homework.id), :class => 'c_blue', :title => "开启匿评后不可修改作品"
|
|
|
|
|
elsif homework.homework_detail_manual && homework.homework_detail_manual.comment_status == 3
|
|
|
|
|
link_to "匿评结束", student_work_index_path(:homework => homework.id), :class => 'c_blue', :title => "匿评已结束"
|
|
|
|
|
elsif homework.homework_type == 2 #编程作业不能修改作品
|
|
|
|
|
link_to "修改作品", new_student_work_path(:homework => homework.id),:class => 'c_blue'
|
|
|
|
|
else
|
|
|
|
|