|
|
|
@ -81,8 +81,9 @@ module HomeworkCommonsHelper
|
|
|
|
|
if homework_common.allow_late && (homework_common.late_time.nil? || homework_common.late_time >= Time.now)
|
|
|
|
|
time = "补交剩余时间:" + how_much_time(homework_common.late_time)
|
|
|
|
|
time_status = 2
|
|
|
|
|
else
|
|
|
|
|
status << "已截止"
|
|
|
|
|
end
|
|
|
|
|
status << "评阅中"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
@ -117,11 +118,10 @@ module HomeworkCommonsHelper
|
|
|
|
|
time = "提交剩余时间:" + how_much_time(max_end_time)
|
|
|
|
|
time_status = 1
|
|
|
|
|
elsif 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 << "评阅中"
|
|
|
|
|
status << "已截止"
|
|
|
|
|
time = ""
|
|
|
|
|
time_status = 5
|
|
|
|
|
end
|
|
|
|
|