diff options
author | Vincent Ambo <v.ambo@me.com> | 2012-03-18T22·47+0100 |
---|---|---|
committer | Vincent Ambo <v.ambo@me.com> | 2012-03-18T22·47+0100 |
commit | 515660fa7deeeb6753768378e0cfa38a4616e03a (patch) | |
tree | bea09c2dbbb4611f53803e33bbc13aad9f6dce22 /src/Blog.hs | |
parent | b7e34eba74918c04ab247ba7d761ddc3e6c46321 (diff) |
* fixed 404 page
Diffstat (limited to 'src/Blog.hs')
-rw-r--r-- | src/Blog.hs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Blog.hs b/src/Blog.hs index 5914052f932e..d6b806985ed6 100644 --- a/src/Blog.hs +++ b/src/Blog.hs @@ -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 |