footer db key = do
hr empty
table $ tr $ do
- td $ submitLink0 (editPage db key) (text "Edit this page")
+ td $ submitLink0 (editPage db key) (text "Edit this keyword")
td $ submitLink0 (listRevs db key) (text "List old versions")
td $ text "Keyword: "
td $ activate (showPage db) textInputField empty
case s of
Nothing -> text "No such revision"
Just s -> parseText s
+ p empty
+ submitLink0 (changeCurrent db key id) (text "Set this version as the current one")
footer db key
-
+changeCurrent db key id = do
+ b <- io $ setCurrent db key id
+ if b then showPage db key
+ else standardQuery key $ do
+ text "Could not set this revision as the current active one."
+ p empty
+ linkKey db key
ex [] = return ()
ex ((Paragraph):xs) = do