aboutsummaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
authorJasper Van der Jeugt2020-08-04 12:35:11 +0200
committerJasper Van der Jeugt2020-08-04 12:35:11 +0200
commit5fd4956c8335487abc91c603affd567324eea95c (patch)
treea62f0f9dc4fa2c9947147ab640cb8237d70af218 /client/src
parent63f04cdee0070f0fbcbbb0e04014dd56d264bf87 (diff)
Make it barely usable
Diffstat (limited to 'client/src')
-rw-r--r--client/src/Client.elm5
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 ""