summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Finney <seanius@seanius.net>2009-12-02 21:15:58 +0100
committerSean Finney <seanius@seanius.net>2009-12-02 21:15:58 +0100
commit2d55fe7a6abbe89a5508c1642e9a75e6bd9eab79 (patch)
treef0be72f0c9e5233f23340735ce34ad36b6816a4d
parent216a069108f534c993e52e7435c76db40c0e2568 (diff)
downloadpatch-tracker-2d55fe7a6abbe89a5508c1642e9a75e6bd9eab79.tar.gz
now include a 500 error page
-rw-r--r--sample-apache2.conf4
-rw-r--r--static/500.html46
-rw-r--r--static/img/500-ohnoes.pngbin0 -> 377343 bytes
3 files changed, 50 insertions, 0 deletions
diff --git a/sample-apache2.conf b/sample-apache2.conf
index 419b0a8..5bd6e7e 100644
--- a/sample-apache2.conf
+++ b/sample-apache2.conf
@@ -6,6 +6,8 @@
# static content, such as images, css, etc
#Alias /static /home/seanius/patch-tracker/static
+# a custom error page
+#ErrorDocument 500 /static/500.html
# all other requests go through a central handler
#WSGIScriptAlias / /home/seanius/patch-tracker/pagehandler.py
#<Location />
@@ -19,6 +21,8 @@
# static content, such as images, css, etc
Alias /patch-tracking.debian.net/static /home/seanius/patch-tracker/static
+# a custom error page
+ErrorDocument 500 /patch-tracking.debian.net/static/500.html
# all other requests go through a central handler
WSGIScriptAlias /patch-tracking.debian.net /home/seanius/patch-tracker/pagehandler.py
<Location /patch-tracking.debian.net>
diff --git a/static/500.html b/static/500.html
new file mode 100644
index 0000000..eef8c94
--- /dev/null
+++ b/static/500.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+ <head>
+ <title>Oh noes! Error!
+</title>
+ <link rel="stylesheet" type="text/css"
+ href="http://htpc/patch-tracking.debian.net/static/css/patches.css"/>
+ <base href="http://htpc/patch-tracking.debian.net/" />
+ </head>
+ <body>
+ <div class="pageheader">
+
+ <img alt="[patchlogo]" src="http://htpc/patch-tracking.debian.net/static/img/swirlpatch.png"/>
+ <p> <a href="http://htpc/patch-tracking.debian.net/">Debian patch tracking system </a> </p>
+ <div class="breadcrumb">
+ </div> <!-- breadcrumb -->
+ </div>
+ <h1>Oh noes! An error!</h1>
+
+ <div align="center">
+ <img alt="[maintenance cat]"
+ src="http://htpc/patch-tracking.debian.net/static/img/500-ohnoes.png"
+ width="300" />
+ <p>
+ The system is currently unavailable. Please wait for it to become
+ available again.
+ </p>
+ </div>
+
+ <div class="pagefooter">
+ page code/design/content is copyright (c) 2008 sean finney
+ &lt;seanius@debian.org&gt;. <br/>
+ patches viewed/retrieved through this system are copyrighted by
+ their respective authors. <br/>
+ <a href="http://git.debian.org/?p=users/seanius/patch-tracker.git">
+
+ browse git repo
+ </a>
+ -
+ <a href="http://git.debian.org/git/users/seanius/patch-tracker.git">
+ clone git repo
+ </a>
+ </div> <!-- pagefooter -->
+ </body>
+</html>
diff --git a/static/img/500-ohnoes.png b/static/img/500-ohnoes.png
new file mode 100644
index 0000000..beab844
--- /dev/null
+++ b/static/img/500-ohnoes.png
Binary files differ