diff options
author | Jasper Van der Jeugt | 2020-08-04 12:35:11 +0200 |
---|---|---|
committer | Jasper Van der Jeugt | 2020-08-04 12:35:11 +0200 |
commit | 5fd4956c8335487abc91c603affd567324eea95c (patch) | |
tree | a62f0f9dc4fa2c9947147ab640cb8237d70af218 /client | |
parent | 63f04cdee0070f0fbcbbb0e04014dd56d264bf87 (diff) |
Make it barely usable
Diffstat (limited to 'client')
-rw-r--r-- | client/src/Client.elm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/Client.elm b/client/src/Client.elm index 6b65091..f15952e 100644 --- a/client/src/Client.elm +++ b/client/src/Client.elm @@ -49,7 +49,8 @@ viewPlayer player = Html.div [] <| [ Html.text player.name ] ++ (if player.admin then [Html.text " 👑"] else []) ++ - (if player.ready then [Html.text " ✅"] else []) + (if player.ready then [Html.text " ✅"] else []) ++ + [Html.text <| " (" ++ String.fromInt player.points ++ " points)"] view : Model -> List (Html Msg) view model = case model of @@ -62,7 +63,7 @@ view model = case model of [ Html.h1 [] [Html.text "Players"] , Html.ul [] <| List.map (\o -> Html.li [] [viewPlayer o]) - game.view.players + (game.view.me :: game.view.players) , Html.h1 [] [Html.text "You"] , Html.form [ Html.Attributes.action "" |