# 帖子信息
json.messages_count @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(@page, 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