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 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 ): class Error_page( Page ):
def __init__( self, support_email, message = None ): 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: if message:
title = u"whoops" title = u"whoops"
Page.__init__( Page.__init__(
self, self,
H2( title ), title,
P( message ), header_image,
Div(
H2( title ),
P( message ),
class_ = u"error_box",
),
include_js = False, include_js = False,
) )
return return
@ -18,6 +28,7 @@ class Error_page( Page ):
Page.__init__( Page.__init__(
self, self,
title, title,
header_image,
Div( Div(
H2( title ), H2( title ),
Noscript( Noscript(