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.
25 lines
969 B
25 lines
969 B
6 years ago
|
json.partial! "homework_commons/homework_public_navigation", locals: {homework: @homework, course: @course, user: @current_user}
|
||
|
json.(@work, :description, :commit_time, :update_time)
|
||
|
|
||
|
json.is_evaluation @is_evaluation
|
||
|
json.author_name @is_evaluation ? "匿名" : @work.user.real_name
|
||
|
json.is_author @is_author
|
||
|
json.update_user_name @is_evaluation ? "匿名" : @work.commit_user.try(:real_name)
|
||
|
|
||
|
json.update_atta @homework.late_duration && @is_author
|
||
|
|
||
|
json.attachments @attachments do |atta|
|
||
|
json.partial! "attachments/attachment_simple", locals: {attachment: atta, delete: @work.delete_atta(atta)}
|
||
|
end
|
||
|
|
||
|
unless @is_evaluation
|
||
|
if @homework.homework_type == "group" && @homework.homework_detail_group.base_on_project
|
||
|
json.project_info project_info @work, @current_user, @user_course_identity
|
||
|
end
|
||
|
|
||
|
json.work_members @work_members.each do |member|
|
||
|
json.user_name member.user.real_name
|
||
|
json.user_login member.user.login
|
||
|
end
|
||
|
end
|