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