witten
/
luminotes
Archived
1
0
Fork 0

Making error messages a little nicer. Now with img title.

This commit is contained in:
Dan Helfman 2007-12-14 21:50:33 +00:00
parent 4a5aeaed98
commit 07992a63d0
1 changed files with 14 additions and 3 deletions

View File

@ -1,15 +1,25 @@
from Page import Page
from Tags import Div, H2, P, A, Ul, Li, Strong, Noscript
from Tags import Div, H2, P, A, Ul, Li, Strong, Noscript, Img
class Error_page( Page ):
def __init__( self, support_email, message = None ):
header_image = Div(
A( Img( src = "/static/images/luminotes_title.png" ), href = "/", title = "Luminotes personal wiki notebook" ),
class_ = u"error_header",
)
if message:
title = u"whoops"
Page.__init__(
self,
H2( title ),
P( message ),
title,
header_image,
Div(
H2( title ),
P( message ),
class_ = u"error_box",
),
include_js = False,
)
return
@ -18,6 +28,7 @@ class Error_page( Page ):
Page.__init__(
self,
title,
header_image,
Div(
H2( title ),
Noscript(