From ee31ec6cc34516122dc8239a331b058bc9e37ee5 Mon Sep 17 00:00:00 2001 From: Menci Date: Sun, 2 Jul 2017 18:12:34 +0800 Subject: [PATCH] Optimize Skipped status UI --- views/submission_content.ejs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/submission_content.ejs b/views/submission_content.ejs index aec997a..3791bf0 100644 --- a/views/submission_content.ejs +++ b/views/submission_content.ejs @@ -132,13 +132,13 @@ else problemUrl = syzoj.utils.makeUrl(['problem', judge.problem_id]); <% } %> <% for (let i = 0; i < subtask_cases.case_num; i++) { %> <% let testcase = subtask_cases[i]; %> -
style="cursor: auto; "<% } %>> +
style="cursor: auto; "<% } %>>
测试点 #<%= i + 1 %>
<%= testcase.status %>
- <% if (!testcase.pending) { %> + <% if (!testcase.pending && testcase.status !== 'Skipped') { %> <% if (!testcase.score) testcase.score = testcase.status === 'Accepted' ? 100 : 0; %>
得分:<%= parseFloat(testcase.score.toFixed(2)).toString() %>
用时:<%= testcase.time_used %> ms
@@ -147,7 +147,7 @@ else problemUrl = syzoj.utils.makeUrl(['problem', judge.problem_id]);
- <% if (!testcase.pending && judge.allowedSeeData) { %> + <% if (!testcase.pending && judge.allowedSeeData && testcase.status !== 'Skipped') { %>

输入文件

<%= testcase.input %>