summaryrefslogtreecommitdiff
path: root/views/profile.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-05-06 20:01:42 +0200
committerTor Andersson <tor@ccxvii.net>2025-05-06 20:08:41 +0200
commit2d22fd6f23e2afe24b64e4b8ab09bf1b5404e3e4 (patch)
tree6dfff0874c64aa7ebb2c9b6d56467e75691e3044 /views/profile.pug
parent5c671661d4ec0b54ee0d7e5ccd4dcc4aff42d079 (diff)
downloadserver-2d22fd6f23e2afe24b64e4b8ab09bf1b5404e3e4.tar.gz
Show user statistics on profile (use pug mixin).
Diffstat (limited to 'views/profile.pug')
-rw-r--r--views/profile.pug14
1 files changed, 12 insertions, 2 deletions
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, <a class="black" href="/user/#{user.name}">#{user.name}</a>!
+
+ 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
| <a href="/account/change-name">Change user name</a>
br
| <a href="/account/change-about">Change profile text</a>
- br
+ p
| <a href="/account/delete">Delete account</a>
if ENABLE_WEBHOOKS