summaryrefslogtreecommitdiff
path: root/views/profile.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-15 23:00:42 +0100
committerTor Andersson <tor@ccxvii.net>2022-01-15 23:00:48 +0100
commit4cfbe0019331c8fb2d381606806e6bea253ca14a (patch)
tree2401a00273b7b19bdbefe70a60515a7b00833734 /views/profile.pug
parentc3d34c80112b291f13375b477e4fb6d70b59ed0a (diff)
downloadserver-4cfbe0019331c8fb2d381606806e6bea253ca14a.tar.gz
Separate open and ready to start game lists.
Diffstat (limited to 'views/profile.pug')
-rw-r--r--views/profile.pug6
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
| &#xbb; <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.