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.
10 lines
505 B
10 lines
505 B
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 |