blob: a3ca8d0c8bfb16ad19a4c2683d73515e08df06a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
//- vim:ts=4:sw=4:
doctype html
html
head
include head
title Contacts
style.
td a.red { text-decoration: none; color: var(--color-red); font-size: 14px; margin-left: 8px; }
td a.blue { text-decoration: none; color: var(--color-black); font-size: 16px; margin-left: 8px; }
td a.blue:hover { color: var(--color-blue); }
body
include header
article
h1 Friends & Enemies
table.half.striped
thead
tr
th Friends
th Last seen
th
tbody
each who in friends
tr
td
a.black(href="/user/"+who.name)= who.name
td.w= who.atime
td.w.r
a.blue(href="/message/send/"+who.name) 📝
a.red(href="/contacts/remove/"+who.name) ❌
else
tr
td Nobody
if enemies.length > 0
p
table.half.striped
thead
tr
th Blacklist
th
tbody
each who in enemies
tr
td
a.black(href="/user/"+who.name)= who.name
td.r
a.red(href="/contacts/remove/"+who.name) ❌
else
tr
td Nobody
p
form(method="get" action="/contacts/search")
input(type="text" name="q" size=40 placeholder="Find user..." required)
|