学生作品详情无法打开
This commit is contained in:
parent
8e7d25a483
commit
ed0eb4aff3
|
@ -130,7 +130,7 @@ module StudentWorkHelper
|
||||||
def revise_attachment_status homework, attach
|
def revise_attachment_status homework, attach
|
||||||
date = Time.parse(format_time(attach.created_on.to_s)).strftime("%Y-%m-%d")
|
date = Time.parse(format_time(attach.created_on.to_s)).strftime("%Y-%m-%d")
|
||||||
status = ""
|
status = ""
|
||||||
if homework.homework_detail_manual && ((homework.anonymous_comment == 0 &&homework.homework_detail_manual.evaluation_start.to_s <= date) || (homework.anonymous_comment == 1 && homework.end_time < date))
|
if homework.homework_detail_manual && ((homework.anonymous_comment == 0 &&homework.homework_detail_manual.evaluation_start.to_s <= date) || (homework.anonymous_comment == 1 && homework.end_time.to_s < date))
|
||||||
status = "此时其他同学作品已公开"
|
status = "此时其他同学作品已公开"
|
||||||
else
|
else
|
||||||
status = "此时其他同学作品尚未公开"
|
status = "此时其他同学作品尚未公开"
|
||||||
|
|
Loading…
Reference in New Issue