You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
615 B
16 lines
615 B
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 |