From 9a498b45e421c7beba8e4196b79a75b73ea91299 Mon Sep 17 00:00:00 2001 From: Menci Date: Sat, 18 Feb 2017 16:06:23 +0800 Subject: [PATCH] UI optimize --- views/problem_data.ejs | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/views/problem_data.ejs b/views/problem_data.ejs index 83651b6..2e086a7 100644 --- a/views/problem_data.ejs +++ b/views/problem_data.ejs @@ -21,30 +21,28 @@ let subtaskType = { <% } else { %>

评测方式:文本比较

<% } %> - - - - - - - +
输入文件输出文件
- <% let i = 0; %> - <% for (let subtask of list) { %> - <% if (list.length !== 1) { %> - - - + <% let i = 0; %> + <% for (let subtask of list) { %> + <% if (list.length !== 1) { %> + + + <% } else { %> + + + <% } %> + <% for (let testcase of subtask.cases) { %> + + + + + <% } %> <% } %> - <% for (let testcase of subtask.cases) { %> - - - - - <% } %> - <% } %> -

子任务 <%= ++i %>

<%= subtaskType[subtask.type] %>,总分值 <%= subtask.score %>

子任务 <%= ++i %>

<%= subtaskType[subtask.type] %>,总分值 <%= subtask.score %> +

单个子任务

<%= subtaskType[subtask.type] %> +
<%= testcase.input %><%= testcase.output %>
<%= testcase.input %><%= testcase.output %>
+ <% } catch (e) { %>

数据包错误:<%= e %>

<% } %> @@ -118,7 +116,7 @@ let subtaskType = { <% } %>
- +