[perf-web] Add templates for error pages



commit c8c79fb6fa1067d5d1567c2c7f743ab4e48ac3a2
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Sep 23 09:59:18 2014 -0400

    Add templates for error pages
    
    When not in debug mode, we need our own error page templates.

 templates/400.html |    9 +++++++++
 templates/403.html |    9 +++++++++
 templates/404.html |    9 +++++++++
 templates/500.html |   11 +++++++++++
 4 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/templates/400.html b/templates/400.html
new file mode 100644
index 0000000..9f30e61
--- /dev/null
+++ b/templates/400.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>Bad request</title>
+  <link rel="stylesheet"  type="text/css" href="/static/perf.css" />
+</head>
+<body id="errorPage">
+The submitted request could not be processed.
+</body>
diff --git a/templates/403.html b/templates/403.html
new file mode 100644
index 0000000..e991c7d
--- /dev/null
+++ b/templates/403.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>Permission denied</title>
+  <link rel="stylesheet"  type="text/css" href="/static/perf.css" />
+</head>
+<body id="errorPage">
+You don't have permissions to access the specified resource.
+</body>
diff --git a/templates/404.html b/templates/404.html
new file mode 100644
index 0000000..a058c08
--- /dev/null
+++ b/templates/404.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>Page not found</title>
+  <link rel="stylesheet"  type="text/css" href="/static/perf.css" />
+</head>
+<body id="errorPage">
+The specified page does not exist.
+</body>
diff --git a/templates/500.html b/templates/500.html
new file mode 100644
index 0000000..9e04345
--- /dev/null
+++ b/templates/500.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>Server Error</title>
+  <link rel="stylesheet"  type="text/css" href="/static/perf.css" />
+</head>
+<body id="errorPage">
+An internal error has occurred. If you know how you triggered this,
+please report a bug to
+<a 
href="https://bugzilla.gnome.org/enter_bug.cgi?product=website&amp;component=perf.gnome.org";>bugzilla.gnome.org</a>.
+</body>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]