summaryrefslogtreecommitdiff
path: root/views/contacts.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-10-03 16:30:13 +0200
committerTor Andersson <tor@ccxvii.net>2022-10-05 17:36:50 +0200
commitf972745ac092a1657d40d9fb01f7c68508a7c416 (patch)
treecf4d51b2d496f397f16aa5d1eedcc6219dc239b5 /views/contacts.pug
parentd214832a193a06f20612fcfb3e64f86562235b70 (diff)
downloadserver-f972745ac092a1657d40d9fb01f7c68508a7c416.tar.gz
Add contact list with friends and blacklisted users.
Diffstat (limited to 'views/contacts.pug')
-rw-r--r--views/contacts.pug54
1 files changed, 54 insertions, 0 deletions
diff --git a/views/contacts.pug b/views/contacts.pug
new file mode 100644
index 0000000..62840f9
--- /dev/null
+++ b/views/contacts.pug
@@ -0,0 +1,54 @@
+//- vim:ts=4:sw=4:
+doctype html
+html
+ head
+ include head
+ title Contacts
+ style.
+ table { min-width: 400px }
+ td a.red { text-decoration: none; color: brown; font-size: 14px; margin-left: 8px; }
+ td a.blue { text-decoration: none; color: black; font-size: 16px; margin-left: 8px; }
+ td a.blue:hover { color: blue; }
+ body
+ include header
+ article
+
+ h1 Friends &amp; Enemies
+
+ table
+ thead
+ tr
+ th Friends
+ th Last seen
+ th
+ tbody
+ each who in friends
+ tr
+ td
+ a(href="/user/"+who.name)= who.name
+ td= who.atime
+ td.r
+ a.blue(href="/message/send/"+who.name) &#x1f4dd;
+ a.red(href="/contact/remove/"+who.name) &#x274c;
+ else
+ tr
+ td Nobody
+
+ if enemies.length > 0
+ p
+
+ table
+ thead
+ tr
+ th Blacklist
+ th
+ tbody
+ each who in enemies
+ tr
+ td
+ a(href="/user/"+who.name)= who.name
+ td.r
+ a.red(href="/contact/remove/"+who.name) &#x274c;
+ else
+ tr
+ td Nobody