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.
educoder/app/views/homework_commons/show_comment.json.jbuilder

14 lines
718 B

# 帖子信息
json.homework_user_id @homework.user_id
json.messages_count @messages_count
json.parent_messages_count @parent_messages_count
json.comments @messages do |message|
json.partial! "graduation_topics/graduation_comments", locals: {message: message, current_user: @current_user,
identity: @user_course_identity}
if @parent.nil?
json.children message.children(1, 5) do |c_message|
json.partial! 'graduation_topics/graduation_comments', locals: { message: c_message, current_user: @current_user,
identity: @user_course_identity}
end
end
end