Skip to content

Commit

Permalink
Search page: results in table
Browse files Browse the repository at this point in the history
  • Loading branch information
runeksvendsen committed Oct 12, 2023
1 parent fd62d9e commit 8dd1b90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/Server/Pages/Search.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ import Data.List (intersperse)
page :: MyLib.Graph -> T.Text -> T.Text -> Handler (Html ())
page graph src dst = pure $ do
p_ $ "Hi there, you entered src=" <> mono (toHtml src) <> ", dst=" <> mono (toHtml dst)
forM_ results $ \result -> renderResult result >> br_ []
table_ $
tbody_ $
forM_ results $ \result ->
tr_ $ td_ $ renderResult result
where
maxCount = 20

Expand Down

0 comments on commit 8dd1b90

Please sign in to comment.