diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-10-03 16:30:13 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-10-05 17:36:50 +0200 |
commit | f972745ac092a1657d40d9fb01f7c68508a7c416 (patch) | |
tree | cf4d51b2d496f397f16aa5d1eedcc6219dc239b5 /views/user.pug | |
parent | d214832a193a06f20612fcfb3e64f86562235b70 (diff) | |
download | server-f972745ac092a1657d40d9fb01f7c68508a7c416.tar.gz |
Add contact list with friends and blacklisted users.
Diffstat (limited to 'views/user.pug')
-rw-r--r-- | views/user.pug | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/views/user.pug b/views/user.pug index 4c26716..545d1ab 100644 --- a/views/user.pug +++ b/views/user.pug @@ -25,9 +25,19 @@ html p Member since #{who.ctime}. p Last seen #{who.atime}. - if user + + if user && (who.user_id !== user.user_id) p a(href="/message/send/"+who.name) Send message + br + if relation > 0 + a(href="/contact/remove-user/"+who.name) Remove from friends + else if relation < 0 + a(href="/contact/remove-user/"+who.name) Remove from blacklist + else + a(href="/contact/add-friend/"+who.name) Add to friends + br + a(href="/contact/add-enemy/"+who.name) Blacklist user if open_games.length > 0 h2 Open |