summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/user.pug27
1 files changed, 27 insertions, 0 deletions
diff --git a/views/user.pug b/views/user.pug
index fc55b42..4aecb0b 100644
--- a/views/user.pug
+++ b/views/user.pug
@@ -42,6 +42,33 @@ html
br
a(href="/contacts/add-enemy/"+who.name) Add to blacklist
+ h3 Response time
+ div Average response time: #{(who.move_time_avg * 24).toFixed(2)} hours
+
+ h3 Timeouts
+ div Total number of timeouts: #{who.timeout_total}
+ div Games completed since last timeout: #{who.games_since_timeout}
+
+ if ratings.length > 0
+ h3 Most played games
+ table
+ thead
+ tr
+ th Title
+ th Count
+ th Last played
+ if user && user.user_id === 1
+ th Elo
+ tbody
+ each row in ratings
+ tr
+ td
+ a.black(href="/" + row.title_id)= row.title_name
+ td.r= row.count
+ td.r= row.last
+ if user && user.user_id === 1
+ td.r= row.rating
+
+tourlist(null, active_pools, finished_pools)
if open_games.length > 0