From 46321e424982fdcfd97b4a13fd5cf27af825776e Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Tue, 18 Aug 2015 16:52:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E3=80=81404=E9=A1=B5=E9=9D=A2=E3=80=81500=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/404.html | 151 +++++++++++++++++++++++++++++++++++ template/500.html | 151 +++++++++++++++++++++++++++++++++++ template/utils/error.html | 161 +++++++++++++++++++++++++++++++++++--- template/utils/info.html | 10 --- 4 files changed, 453 insertions(+), 20 deletions(-) create mode 100644 template/404.html create mode 100644 template/500.html delete mode 100644 template/utils/info.html diff --git a/template/404.html b/template/404.html new file mode 100644 index 0000000..3d1a505 --- /dev/null +++ b/template/404.html @@ -0,0 +1,151 @@ +{% extends "oj_base.html" %} +{% block css_block %} + +{% endblock %} +{% block body %} +
+

404 - Page Not Found

+
+
+ +
// C
+#include <stdio.h>
+int main()
+{
+    printf("404 - Page Not Found");
+    return 0;
+}
+
// C++
+#include <iostream>
+int main()
+{
+    std::cout << "404 - Page Not Found" << std::endl;
+    return 0;
+}
+
// Java
+public class Main
+{
+    public static void main(String[] args)
+    {
+        System.out.println("404 - Page Not Found");
+    }
+}
+
// JavaScript
+console.log("404 - Page Not Found")
+
// Python
+print "404 - Page Not Found"
+ +
+
+{% endblock %} \ No newline at end of file diff --git a/template/500.html b/template/500.html new file mode 100644 index 0000000..28349ba --- /dev/null +++ b/template/500.html @@ -0,0 +1,151 @@ +{% extends "oj_base.html" %} +{% block css_block %} + +{% endblock %} +{% block body %} +
+

500 - Server Error

+
+
+ +
// C
+#include <stdio.h>
+int main()
+{
+    printf("500 - Server Error");
+    return 0;
+}
+
// C++
+#include <iostream>
+int main()
+{
+    std::cout << "500 - Server Error" << std::endl;
+    return 0;
+}
+
// Java
+public class Main
+{
+    public static void main(String[] args)
+    {
+        System.out.println("500 - Server Error");
+    }
+}
+
// JavaScript
+console.log("500 - Server Error")
+
// Python
+print "500 - Server Error"
+ +
+
+{% endblock %} \ No newline at end of file diff --git a/template/utils/error.html b/template/utils/error.html index 307b5b0..98fbeef 100644 --- a/template/utils/error.html +++ b/template/utils/error.html @@ -1,10 +1,151 @@ - - - - - - - -{{ error }} - - \ No newline at end of file +{% extends "oj_base.html" %} +{% block css_block %} + +{% endblock %} +{% block body %} +
+

出错了~~ {{ error }}

+
+
+ +
// C
+#include <stdio.h>
+int main()
+{
+    printf("An error occurred\n");
+    return 0;
+}
+
// C++
+#include <iostream>
+int main()
+{
+    std::cout << "An error occurred" << std::endl;
+    return 0;
+}
+
// Java
+public class Main
+{
+    public static void main(String[] args)
+    {
+        System.out.println("An error occurred");
+    }
+}
+
// JavaScript
+console.log("An error occurred\n")
+
// Python
+print "An error occurred"
+ +
+
+{% endblock %} \ No newline at end of file diff --git a/template/utils/info.html b/template/utils/info.html deleted file mode 100644 index bf08372..0000000 --- a/template/utils/info.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - -{{ info }} - - \ No newline at end of file