diff --git a/views/judge_detail_item.ejs b/views/judge_detail_item.ejs index a033a29..706b32b 100644 --- a/views/judge_detail_item.ejs +++ b/views/judge_detail_item.ejs @@ -16,6 +16,7 @@ for (let s of judge.result.subtasks) { pending: true, status: runningFound ? 'Waiting' : 'Running' }; + if (!runningFound) s.isActiveSubtask = true; runningFound = true; } } @@ -80,11 +81,11 @@ for (let s of judge.result.subtasks) {

编译信息

<%- judge.result.compiler_output %>
<% } else if (judge.allowedSeeResult) { %> -
+
<% let subtask_count = 0; %> <% for (let subtask_cases of (judge.result.subtasks || [])) { %> <% if (judge.result.subtasks.length !== 1) { %> -
+
子任务 #<%= ++subtask_count %>
@@ -95,12 +96,12 @@ for (let s of judge.result.subtasks) { <% } %>
-
-
+
+
<% } %> <% for (let i = 0; i < subtask_cases.case_num; i++) { %> <% let testcase = subtask_cases[i]; %> -
style="cursor: auto; "<% } %>> +
style="cursor: auto; "<% } %>>
测试点 #<%= i + 1 %>
@@ -114,7 +115,7 @@ for (let s of judge.result.subtasks) { <% } %>
-
+
<% if (!testcase.pending) { %>

输入文件 @@ -152,22 +153,33 @@ $(function() { <% if (!isPending(judge.status)) { %>

<% } %>