From 072766b71f9441fdd2796b8dd1137b90acd5a561 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 12 Jun 2022 16:42:33 +0200 Subject: List playing and recently finished games on user pages. --- views/games_finished.pug | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'views/games_finished.pug') 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. -- cgit v1.2.3