diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-06-12 16:42:33 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-06-13 20:20:01 +0200 |
commit | 072766b71f9441fdd2796b8dd1137b90acd5a561 (patch) | |
tree | 27dce1ed3f835a964b8dcf1d5f976d2ac1b507e2 /views/user.pug | |
parent | 8175df9f9af2393964f053af5a98851c376e1675 (diff) | |
download | server-072766b71f9441fdd2796b8dd1137b90acd5a561.tar.gz |
List playing and recently finished games on user pages.
Diffstat (limited to 'views/user.pug')
-rw-r--r-- | views/user.pug | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/views/user.pug b/views/user.pug index 99420cc..73c2e2d 100644 --- a/views/user.pug +++ b/views/user.pug @@ -21,3 +21,13 @@ html if user p a(href="/message/send/"+who.name) Send message + + if active_games.length > 0 + h2 Playing + +gamelist(active_games) + + if finished_games.length > 0 + h2 Recently finished + +gamelist(finished_games) + + p <a href="/games/finished/#{who.name}">All #{who.name}'s finished games</a> |