|
|
|
@ -117,9 +117,16 @@ module HomeworkCommonsHelper
|
|
|
|
|
time = "提交剩余时间:" + how_much_time(max_end_time)
|
|
|
|
|
time_status = 1
|
|
|
|
|
else
|
|
|
|
|
status << "已截止"
|
|
|
|
|
time = course.end_date.present? ? ("评阅剩余时间:" + how_much_time(course.end_date.end_of_day)) : ""
|
|
|
|
|
time_status = 5
|
|
|
|
|
if max_end_time.present? && max_end_time < Time.now && homework_common.allow_late &&
|
|
|
|
|
(homework_common.late_time.nil? || homework_common.late_time > Time.now)
|
|
|
|
|
status << "补交中"
|
|
|
|
|
time = "补交剩余时间:" + how_much_time(homework_common.late_time)
|
|
|
|
|
time_status = 2
|
|
|
|
|
else
|
|
|
|
|
status << "已截止"
|
|
|
|
|
time = course.end_date.present? ? ("评阅剩余时间:" + how_much_time(course.end_date.end_of_day)) : ""
|
|
|
|
|
time_status = 5
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|