From 2d22fd6f23e2afe24b64e4b8ab09bf1b5404e3e4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 6 May 2025 20:01:42 +0200 Subject: Show user statistics on profile (use pug mixin). --- views/profile.pug | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'views/profile.pug') diff --git a/views/profile.pug b/views/profile.pug index 39f1977..de6e5c4 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -7,9 +7,19 @@ html body include header article - h1= SITE_NAME + h1 Profile p Welcome, #{user.name}! + + if who.about + p.box= who.about + + p Member since #{human_date(who.ctime)}. + + +userstats(who, ratings) + + h3 Account + p Your mail address is #{user.mail} if ENABLE_MAIL @@ -30,7 +40,7 @@ html | Change user name br | Change profile text - br + p | Delete account if ENABLE_WEBHOOKS -- cgit v1.2.3