- 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
+ standardQuery "List of keywords" $ do
+ table (do
+ tr $ th (text "Keyword")
+ mapM (\key -> tr $ td $ linkKey db key) list)
+ footer db ""