|
|
|
@ -84,6 +84,7 @@ elsif @user_course_identity == Course::STUDENT
|
|
|
|
|
json.user_login @work.user.login
|
|
|
|
|
json.student_id @work.user.student_id
|
|
|
|
|
json.user_name @work.user.real_name
|
|
|
|
|
json.user_img url_to_avatar(@work.user)
|
|
|
|
|
json.group_name @member.course_group_name
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -108,6 +109,7 @@ if @homework.homework_type == "practice"
|
|
|
|
|
json.view_answer_count work.myshixun.try(:view_answer_count).to_i
|
|
|
|
|
json.user_login work.user.try(:login)
|
|
|
|
|
json.user_name work.user.try(:real_name)
|
|
|
|
|
json.user_img url_to_avatar(work.user)
|
|
|
|
|
json.student_id work.user.try(:student_id)
|
|
|
|
|
json.group_name @students.select{|student| student.user_id == work.user_id}.first.try(:course_group_name)
|
|
|
|
|
json.work_status work.compelete_status
|
|
|
|
@ -169,6 +171,7 @@ elsif @homework.homework_type == "group" || @homework.homework_type == "normal"
|
|
|
|
|
|
|
|
|
|
json.user_login @is_evaluation ? "--" : work.user.try(:login)
|
|
|
|
|
json.user_name @is_evaluation ? "匿名" : work.user.try(:real_name)
|
|
|
|
|
json.user_img url_to_avatar(@is_evaluation ? "0" : work.user)
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|