summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-13 19:26:34 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-13 19:26:34 +0200
commit22ca5ba93c48880792144a2d685794d9e5b30114 (patch)
tree6c92dd338951c7623d9787ef2891b673509a9208
parent40c9e24078bc97e2cff479f2ed488909c7ad47f4 (diff)
downloadserver-22ca5ba93c48880792144a2d685794d9e5b30114.tar.gz
stats
-rw-r--r--views/profile.pug2
-rw-r--r--views/user.pug19
2 files changed, 20 insertions, 1 deletions
diff --git a/views/profile.pug b/views/profile.pug
index 2437eb2..65204c2 100644
--- a/views/profile.pug
+++ b/views/profile.pug
@@ -9,7 +9,7 @@ html
article
h1= SITE_NAME
- p Welcome, #{user.name}!
+ p Welcome, <a class="black" href="/user/#{user.name}">#{user.name}</a>!
p Your mail address is #{user.mail}
if ENABLE_MAIL
diff --git a/views/user.pug b/views/user.pug
index dbadd36..d0b1183 100644
--- a/views/user.pug
+++ b/views/user.pug
@@ -40,6 +40,25 @@ html
br
a(href="/contacts/add-enemy/"+who.name) Blacklist user
+ //if user && user.user_id === 1
+ if true
+ table.striped
+ thead
+ tr
+ th Title
+ if user && user.user_id === 1
+ th.r Rating
+ th.r Plays
+ th.r Last played
+ tbody
+ each row in ratings
+ tr
+ td: a.black(href="/" + row.title_id)= row.title_name
+ if user && user.user_id === 1
+ td.r= row.rating
+ td.r= row.count
+ td.r= row.last
+
if open_games.length > 0
h2 Open
+gamelist(open_games)