2007-07-16 20:22:38 +00:00
|
|
|
from Page import Page
|
2008-10-20 22:53:12 +00:00
|
|
|
from Tags import Div, H2, P, A, Img, Ul, Li
|
2007-07-16 20:22:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Not_found_page( Page ):
|
2007-08-20 20:28:17 +00:00
|
|
|
def __init__( self, support_email ):
|
2007-07-16 20:22:38 +00:00
|
|
|
title = u"404"
|
2008-03-01 00:26:06 +00:00
|
|
|
header_image = Div(
|
|
|
|
A( Img( src = u"/static/images/luminotes_title_full.png", width = u"206", height = u"69" ), href = u"/", alt = u"Luminotes personal wiki notebook" ),
|
|
|
|
class_ = u"error_header",
|
|
|
|
)
|
2007-07-16 20:22:38 +00:00
|
|
|
|
|
|
|
Page.__init__(
|
|
|
|
self,
|
|
|
|
title,
|
2008-03-01 00:26:06 +00:00
|
|
|
header_image,
|
2007-07-16 20:22:38 +00:00
|
|
|
Div(
|
|
|
|
H2( title ),
|
|
|
|
P(
|
2008-10-20 22:53:12 +00:00
|
|
|
u"Sorry, the page you are looking for couldn't be found. But not to worry. You've got a few options.",
|
|
|
|
Ul(
|
|
|
|
Li( u"Return to the", A( u"Luminotes personal wiki notebook", href = u"/" ), u"home page." ),
|
2008-10-20 22:53:59 +00:00
|
|
|
Li( A( u"Contact support", href = u"mailto:%s" % support_email ), u"and report that the page you expected to find here is missing." ),
|
2008-10-20 22:53:12 +00:00
|
|
|
),
|
2007-07-16 20:22:38 +00:00
|
|
|
),
|
2007-08-07 20:29:37 +00:00
|
|
|
class_ = u"error_box",
|
2007-07-16 20:22:38 +00:00
|
|
|
),
|
|
|
|
)
|