|
|
|
@ -2,7 +2,7 @@ json.teacher_list do
|
|
|
|
|
json.array! @teacher_list do |teacher|
|
|
|
|
|
json.course_member_id teacher.id
|
|
|
|
|
json.name teacher.user.real_name
|
|
|
|
|
json.name_link user_path(teacher.user.login)
|
|
|
|
|
json.name_link user_path(teacher.user)
|
|
|
|
|
json.login teacher.user.login
|
|
|
|
|
json.user_id teacher.user.id
|
|
|
|
|
json.role teacher.role == "CREATOR" ? "管理员" : teacher.role == "PROFESSOR" ? "教师" : "助教"
|
|
|
|
|