From 1f11d6a63b766acd532f13bbb6a2fe06115b9483 Mon Sep 17 00:00:00 2001 From: Menci Date: Mon, 28 Nov 2016 15:43:57 +0800 Subject: [PATCH] Add back to problem button on upload testdata page --- views/upload_testdata.ejs | 49 ++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/views/upload_testdata.ejs b/views/upload_testdata.ejs index eb1bea5..1fbe8e3 100644 --- a/views/upload_testdata.ejs +++ b/views/upload_testdata.ejs @@ -1,17 +1,17 @@ <% this.title = '上传测试数据'; %> <% include header %>
-
+
- <% if (problem.testdata) { %> -

数据包:<%= problem.testdata.filename %>

+ <% if (problem.testdata) { %> +

数据包:<%= problem.testdata.filename %>

<% try { let list = syzoj.utils.parseTestData(problem.testdata.getPath()); %> - - +
+ @@ -25,26 +25,26 @@ <% } %> -
输入文件 输出文件
+ <% } catch (e) { %>

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

<% } %> - <% } else { %> -

数据未上传

- <% } %> -
+ <% } else { %> +

数据未上传

+ <% } %> +
-
-
- - -
-
- - -
-
+
+
+ + +
+
+ + +
+
<% if (!problem.file_io) { %>
@@ -99,12 +99,13 @@
<% } %>
- - + +
- + + 返回题目
-
+