parent
666def7e8c
commit
ec157c5892
@ -0,0 +1,16 @@
|
||||
json.teacher_list do
|
||||
json.array! @teacher_list do |teacher|
|
||||
json.course_member_id teacher.id
|
||||
json.name teacher.user.real_name
|
||||
json.login teacher.user.login
|
||||
json.user_id teacher.user.id
|
||||
json.role teacher.role == "CREATOR" ? "管理员" : teacher.role == "PROFESSOR" ? "教师" : "助教"
|
||||
json.school teacher.user&.school_name
|
||||
json.image_url url_to_avatar(teacher.user)
|
||||
# if @user_course_identity < Course::ASSISTANT_PROFESSOR
|
||||
# json.member_roles teacher.user.course_role(@course)
|
||||
# end
|
||||
end
|
||||
end
|
||||
json.teacher_list_size @teacher_list_size
|
||||
json.apply_size @applications_size
|
Loading…
Reference in new issue