作业调整

chromesetting
cxt 5 years ago
parent f21d37dab0
commit e11b0cd629

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

Loading…
Cancel
Save