|
|
@ -133,13 +133,14 @@ module HomeworkCommonsHelper
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
status << "未开启补交" if !homework_common.allow_late && time_status != 0
|
|
|
|
# status << "未开启补交" if !homework_common.allow_late && time_status != 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# 如果作业状态都没有的话,在课堂结束前,都显示已截止
|
|
|
|
# 如果作业状态都没有的话,在课堂结束前,都显示已截止
|
|
|
|
if status.blank?
|
|
|
|
if status.blank?
|
|
|
|
status << "已截止"
|
|
|
|
status << "已截止"
|
|
|
|
|
|
|
|
time_status = 5
|
|
|
|
end
|
|
|
|
end
|
|
|
|
result[:status] = status
|
|
|
|
result[:status] = status
|
|
|
|
result[:time] = time
|
|
|
|
result[:time] = time
|
|
|
|