* fixed 404 page

This commit is contained in:
Vincent Ambo 2012-03-18 23:47:13 +01:00
parent b7e34eba74
commit 515660fa7d
5 changed files with 27 additions and 3 deletions

View file

@ -237,4 +237,9 @@ editPage (Entry{..}) = adminTemplate "Index" $
-- Error pages
showError :: BlogError -> BlogLang -> Html
showError NotFound l = undefined
showError NotFound l = blogTemplate l (T.append ": " $ notFound l) $
H.div ! A.class_ "innerBox" $ do
H.div ! A.class_ "innerBoxTop" $ toHtml $ notFound l
H.div ! A.class_ "innerBoxMiddle" $ do
H.p ! A.class_ "notFoundFace" $ toHtml (":'(" :: Text)
H.p ! A.class_ "notFoundText" $ toHtml $ notFoundText l