<%= @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 %>
<% if @work.description.present? %>

个人总结

<%= @work.description.html_safe %>
<% end %>

阶段成绩

<% @games.each_with_index do |game, index| %> <% end %>
关卡 任务名称 开启时间 评测次数 完成时间 耗时 经验值
<%= 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 %>

图形统计

  • 姓名
  • 学号
  • 工作效率
  • <%= @user.real_name %>
  • <%= @user.student_id %>
  • <%= @myself_eff[1] %>
  • 姓名
  • 学号
  • 能力
  • <%= @user.real_name %>
  • <%= @user.student_id %>
  • <%= @myself_consume[1] %>
  • 实训详情

    <%#= 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| %>

    <% if game.challenge.st == 1 %> <% else %> <% end %> 第<%= index+1 %>关<%= game.challenge.subject %>

    <% if game.outputs.present? %> <% outputs = game.outputs.group("query_index") %> <% max_query = outputs.map(&:query_index).max %> <% outputs.reverse.try(:each) do |output| %> <% end %>
    评测次数 评测信息
    <%= max_query == output.query_index ? "最后一次" : "第#{output.query_index}次" %> <%= output_detail(game, output) %>
    <% end %> <% if game.try(:lastest_code).present? && game.challenge.st == 0 %>

    最近通过的代码

  • <% end %>
    <% end %>
    <%= 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))%>