diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..5d9706e --- /dev/null +++ b/compose.yml @@ -0,0 +1,15 @@ +version: '3.8' +services: + db: + image: postgres:14.1-alpine + restart: always + environment: + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=test + ports: + - '5432:5432' + volumes: + - db:/var/lib/postgresql/data +volumes: + db: + driver: local diff --git a/lib/Api/Templates/User/User.hs b/lib/Api/Templates/User/User.hs index cdfb25a..38cf62d 100644 --- a/lib/Api/Templates/User/User.hs +++ b/lib/Api/Templates/User/User.hs @@ -47,7 +47,7 @@ renderUser user = do p_ [class_ "text-sm font-normal text-gray-600"] "Party Animal" renderUsers :: [Entity User] -> Html () -renderUsers [] = p_ "No guests yet..." +renderUsers [] = ul_ [id_ "users-ul", class_ "divide-y divide-gray-200"] $ li_ [] "No data" renderUsers users = do ul_ [id_ "users-ul", class_ "divide-y divide-gray-200"] $ do mapM_ renderUser users