|
|
|
@ -4107,7 +4107,7 @@ end
|
|
|
|
|
sheet1 = book.create_worksheet :name => "sheet"
|
|
|
|
|
blue = Spreadsheet::Format.new :color => :blue, :weight => :bold, :size => 10
|
|
|
|
|
sheet1.row(0).default_format = blue
|
|
|
|
|
sheet1.row(0).concat(["序号","创建者","发布时间", "ID", "实训名称","技术平台","fork源", "实践任务"])
|
|
|
|
|
sheet1.row(0).concat(["序号","创建者","发布时间", "ID", "实训名称","技术平台","fork源", "实践任务", "实训链接"])
|
|
|
|
|
count_row = 1
|
|
|
|
|
shixuns.find_each do |shixun|
|
|
|
|
|
sheet1[count_row, 0] = count_row
|
|
|
|
@ -4118,6 +4118,7 @@ end
|
|
|
|
|
sheet1[count_row, 5] = show_shixun_mirror(shixun)
|
|
|
|
|
sheet1[count_row, 6] = shixun.fork_identifier
|
|
|
|
|
sheet1[count_row, 7] = shixun.challenges.count
|
|
|
|
|
sheet1[count_row, 7] = Setting.server_url + shixun_path(shixun)
|
|
|
|
|
count_row += 1
|
|
|
|
|
end
|
|
|
|
|
book.write xls_report
|
|
|
|
|