diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-06-12 16:42:33 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-06-13 20:20:01 +0200 |
commit | 072766b71f9441fdd2796b8dd1137b90acd5a561 (patch) | |
tree | 27dce1ed3f835a964b8dcf1d5f976d2ac1b507e2 /views/games_finished.pug | |
parent | 8175df9f9af2393964f053af5a98851c376e1675 (diff) | |
download | server-072766b71f9441fdd2796b8dd1137b90acd5a561.tar.gz |
List playing and recently finished games on user pages.
Diffstat (limited to 'views/games_finished.pug')
-rw-r--r-- | views/games_finished.pug | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/views/games_finished.pug b/views/games_finished.pug index c6fa66d..df7f038 100644 --- a/views/games_finished.pug +++ b/views/games_finished.pug @@ -7,9 +7,12 @@ html body include header article - h1 Your finished games + if user && user.user_id === who.user_id + h1 Your finished games + else + h1 #{who.name}’s finished games if finished_games.length > 0 - +gamelist(finished_games, "finished") + +gamelist(finished_games) else p Nothing here. |