summaryrefslogtreecommitdiff
path: root/views/games_finished.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-04-15 14:34:49 +0200
committerTor Andersson <tor@ccxvii.net>2022-04-15 14:34:49 +0200
commit8eb1b2f8c4565be28531a057a747cda14512f444 (patch)
tree7fd4cb45adbc35fb3214284791ce6b646f324e83 /views/games_finished.pug
parentdadc4ca510d5e45e270faa04775f377d8ff40412 (diff)
downloadserver-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/games_finished.pug')
-rw-r--r--views/games_finished.pug15
1 files changed, 15 insertions, 0 deletions
diff --git a/views/games_finished.pug b/views/games_finished.pug
new file mode 100644
index 0000000..9ae27c4
--- /dev/null
+++ b/views/games_finished.pug
@@ -0,0 +1,15 @@
+//- vim:ts=4:sw=4:
+doctype html
+html
+ head
+ include head
+ title= title
+ body
+ include header
+ article
+ h1= title
+
+ if finished_games.length > 0
+ +gametable(2,finished_games)
+ else
+ p Nothing here.