|
|
|
@ -13,10 +13,10 @@ json.ta_mode @homework_detail_manual.ta_mode
|
|
|
|
|
json.is_evaluation @is_evaluation ? @is_evaluation : false
|
|
|
|
|
|
|
|
|
|
json.work_public @homework.work_public
|
|
|
|
|
json.calculation_time @homework.calculation_time if @homework.homework_type == "practice"
|
|
|
|
|
|
|
|
|
|
if @user_course_identity < Course::STUDENT
|
|
|
|
|
|
|
|
|
|
json.calculation_time @homework.calculation_time if @homework.homework_type == "practice"
|
|
|
|
|
# 教师身份的评阅、提交状态、分班过滤
|
|
|
|
|
if @homework.homework_type != "practice"
|
|
|
|
|
json.teacher_comment teacher_comment @homework, @current_user.id
|
|
|
|
|