summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2022-03-06 18:13:08 +0100
committerstuebinm2022-03-19 20:00:54 +0100
commitdf7028c75c17230043c9839f173e164f9d6b0c0e (patch)
treee437fc27e3b96fe77e1de3ebaa6ed12fbf8a3511
parent1e3ee5b0c6f4cff4656b8ca377699569cae4323b (diff)
server: small html improvements
bootstrap is horrible and should be replaced
-rw-r--r--server/HtmlOrphans.hs9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/HtmlOrphans.hs b/server/HtmlOrphans.hs
index ee30773..64de2f6 100644
--- a/server/HtmlOrphans.hs
+++ b/server/HtmlOrphans.hs
@@ -55,9 +55,11 @@ instance ToHtml JobStatus where
autoReloadScript
Linted res _rev (pending, _) -> do
h1_ "Linter Result"
- if pending
- then button_ [class_ "btn btn-primary btn-disabled", disabled_ "true"] "pending …"
- else button_ [onclick_ "relint()", class_ "btn btn-primary", id_ "relint_button"] "relint"
+ p_ $ do
+ "your map will be re-linted periodically. "
+ if pending
+ then button_ [class_ "btn btn-primary btn-disabled", disabled_ "true"] "pending …"
+ else button_ [onclick_ "relint()", class_ "btn btn-primary", id_ "relint_button"] "relint now"
toHtml res
script_
"function relint() {\n\
@@ -147,6 +149,7 @@ instance ToHtml (DirResult a) where
unless (null dirresultDeps) $ ul_ $
forM_ dirresultDeps $ \missing -> do
li_ $ do
+ " "
-- TODO: the whole Maybe Bool thing is annoying; I think that was a
-- remnant of talking to python stuff and can probably be removed?
if depFatal missing == Just True