summaryrefslogtreecommitdiff
path: root/views/user.pug
diff options
context:
space:
mode:
Diffstat (limited to 'views/user.pug')
-rw-r--r--views/user.pug10
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>