diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-01-15 23:00:42 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-01-15 23:00:48 +0100 |
commit | 4cfbe0019331c8fb2d381606806e6bea253ca14a (patch) | |
tree | 2401a00273b7b19bdbefe70a60515a7b00833734 /views/profile.pug | |
parent | c3d34c80112b291f13375b477e4fb6d70b59ed0a (diff) | |
download | server-4cfbe0019331c8fb2d381606806e6bea253ca14a.tar.gz |
Separate open and ready to start game lists.
Diffstat (limited to 'views/profile.pug')
-rw-r--r-- | views/profile.pug | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/profile.pug b/views/profile.pug index 6fb777a..5c98743 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -33,6 +33,10 @@ html br | » <a href="/logout">Logout</a> + if ready_games.length > 0 + h2 Ready to start + +gametable(0,ready_games) + if open_games.length > 0 h2 Open games +gametable(0,open_games) @@ -45,5 +49,5 @@ html h2 Finished games +gametable(2,finished_games) - if open_games.length === 0 && active_games.length === 0 && finished_games.length === 0 + if open_games.length === 0 && ready_games.length === 0 && active_games.length === 0 && finished_games.length === 0 p You don't have any current or finished games. |