about summary refs log tree commit diff
path: root/src/Blog.hs
diff options
context:
space:
mode:
authorVincent Ambo <v.ambo@me.com>2012-03-18T22·47+0100
committerVincent Ambo <v.ambo@me.com>2012-03-18T22·47+0100
commit515660fa7deeeb6753768378e0cfa38a4616e03a (patch)
treebea09c2dbbb4611f53803e33bbc13aad9f6dce22 /src/Blog.hs
parentb7e34eba74918c04ab247ba7d761ddc3e6c46321 (diff)
* fixed 404 page
Diffstat (limited to 'src/Blog.hs')
-rw-r--r--src/Blog.hs7
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