json.partial! "homework_commons/homework_public_navigation", locals: {homework: @homework, course: @course, user: @current_user} if @homework.homework_type == "group" json.min_num @homework.homework_detail_group.try(:min_num) json.max_num @homework.homework_detail_group.try(:max_num) json.user_id @current_user.id json.user_name @current_user.real_name json.user_student_id @current_user.student_id json.group_name @course.course_member(@current_user.id).try(:course_group_name) end