ADD 超级管理员“已发布实训”列表的excel导出,增加实训链接

dev_partners
jasder 6 years ago
parent 6129e17ddb
commit c7a3ef7732

@ -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

@ -89,6 +89,8 @@ wiki_compression:
default: ""
default_language:
default: zh
server_url:
default: https://www.educoder.net/
host_name:
default: forge.trustie.net
host_course:

Loading…
Cancel
Save