<%= @course.name %> > <%= @homework.course_second_category&.name || '实训作业'%> > <% homework_ids = @homework.course.homework_commons.where(homework_type: 4, course_homework_category_id: @homework.course_homework_category_id) .order(Arel.sql('IF(ISNULL(publish_time),0,1),publish_time DESC, created_at DESC')).pluck(:id) %> #<%= homework_ids.index(@homework.id) + 1 %>> <%= @user.real_name %>
<%= @shixun.name %>
总体评价
总评 | 总经验值 | 作业成绩 | 耗时 | 评测次数 |
---|---|---|---|---|
<%= @work.overall_appraisal %> | <%= @work.myshixun&.total_score %> / <%= @shixun.all_score %> | <%= ApplicationController.helpers.number_with_precision(@work.work_score, precision: 1) %> / 100 | <%= @work.myshixun_consume %> | <%= @user_evaluate_count.to_i %> |
个人总结
阶段成绩
关卡 | 任务名称 | 开启时间 | 评测次数 | 完成时间 | 耗时 | 经验值 | <% @games.each_with_index do |game, index| %>
---|---|---|---|---|---|---|
<%= index + 1 %> | <%= game.challenge.subject %> <% if ((Time.now > @homework.end_time) && game.end_time.blank?) || (game.end_time.present? && game.end_time > @homework.end_time) %> 延时 <% end %> | <%= myshixun_open_time(game) %> | <%= game.evaluate_count %> | <%= finished_time game.end_time %> | <%= ApplicationController.helpers.time_consuming game %> | <%= game.final_score %> / <%= game.challenge.all_score %> |
图形统计
实训详情
<%#= ApplicationController.helpers.javascript_include_tag "/codemirror/lib/codemirror", "/codemirror/mode/javascript/javascript", "/codemirror/addon/hint/show-hint", "/codemirror/addon/hint/javascript-hint", "/codemirror/addon/selection/active-line", "/codemirror/addon/lint/javascript-lint", "/codemirror/addon/lint/css-lint", "/codemirror/addon/lint/lint", "/codemirror/addon/lint/json-lint", "/editormd/lib/codemirror/addon/lint/css-lint" %> <% @games.each_with_index do |game, index| %>第<%= index+1 %>关<%= game.challenge.subject %>
评测次数 | 评测信息 | <% outputs = game.outputs.group("query_index") %> <% max_query = outputs.map(&:query_index).max %> <% outputs.reverse.try(:each) do |output| %>
---|---|
<%= max_query == output.query_index ? "最后一次" : "第#{output.query_index}次" %> | <%= output_detail(game, output) %> |
最近通过的代码
%= ApplicationController.helpers.pdf_load_sources(*%w(editormd/lib/codemirror/lib/codemirror.js editormd/lib/codemirror/mode/javascript/javascript.js editormd/lib/codemirror/addon/hint/show-hint.js editormd/lib/codemirror/addon/hint/javascript-hint.js editormd/lib/codemirror/addon/selection/active-line.js editormd/lib/codemirror/addon/lint/javascript-lint.js editormd/lib/codemirror/addon/lint/css-lint.js editormd/lib/codemirror/addon/lint/lint.js editormd/lib/codemirror/addon/lint/json-lint.js editormd/lib/codemirror/addon/lint/css-lint.js echart/echarts.min.js))%>