diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-04-15 14:34:49 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-04-15 14:34:49 +0200 |
commit | 8eb1b2f8c4565be28531a057a747cda14512f444 (patch) | |
tree | 7fd4cb45adbc35fb3214284791ce6b646f324e83 /views/profile.pug | |
parent | dadc4ca510d5e45e270faa04775f377d8ff40412 (diff) | |
download | server-8eb1b2f8c4565be28531a057a747cda14512f444.tar.gz |
Separate profile and active game list pages.
Also show number of games where it is your turn in the header.
Only show finished games from last week on active games page.
Add separate finished games page to see all of them.
# Conflicts:
# views/tournament-games.pug
Diffstat (limited to 'views/profile.pug')
-rw-r--r-- | views/profile.pug | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/views/profile.pug b/views/profile.pug index 5c98743..fc9b36b 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -4,8 +4,6 @@ html head include head title= SITE_NAME - if active_games.length > 0 - meta(http-equiv="refresh" content=300) body include header article @@ -32,22 +30,3 @@ html | » <a href="/chat">Chat log</a> 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) - - if active_games.length > 0 - h2 Active games - +gametable(1,active_games) - - if finished_games.length > 0 - h2 Finished games - +gametable(2,finished_games) - - 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. |