]> ruin.nu Git - yawbih.git/blobdiff - Main.hs
more cleanup
[yawbih.git] / Main.hs
diff --git a/Main.hs b/Main.hs
index 418c16820b88fafff475bcc544eee02f227bcabd..4e9572cbaf0b246a96667069a304dab7c6acf549 100644 (file)
--- a/Main.hs
+++ b/Main.hs
@@ -18,8 +18,6 @@ main = do
        db <- testDB
        runWithHook [] (\(key:act) -> showPage db (filter (/= '\\') key)) $ showPage db "MainPage"
 
-ps a = standardQuery "Hello" a
-
 editPage db key = do 
        s <- io $ getCurrent db key 
        s' <- case s of
@@ -33,10 +31,7 @@ editPage db key = do
                p empty
                text "Comment: "
                c <- textInputField (fieldSIZE 20)
-               --p $ submit (F2 t a) testing (attr "value" "Send")
                p $ defaultSubmit (F3 t a c) (savePage db key) (attr "value" "Send")
-               --submit0 (sp db key []) (attr "value" "Send1")
-
 
 savePage db key (F3 t a c) = do
        io $ update db key fulltext author comment
@@ -78,10 +73,12 @@ e _ = True
 
 listRevs db key = do 
        list <- io $ getList db key 
-       standardQuery key $ table $ do
-               tr $ mapM (\header -> th (text header))
-                       ["Id", "Date", "Author", "Comment"]
-               mapM (revRow db key) list
+       standardQuery key $ do
+               table $ do
+                       tr $ mapM (\header -> th (text header))
+                               ["Id", "Date", "Author", "Comment"]
+                       mapM (revRow db key) list
+               footer db key
 
 listKeywords db = do 
        list <- io $ listKeys db