summaryrefslogtreecommitdiff
path: root/views/contacts_search.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-05-06 20:30:33 +0200
committerTor Andersson <tor@ccxvii.net>2025-05-06 20:45:32 +0200
commit6ae417c0be86a44b6dfeb7537da1f9b70a288950 (patch)
treef149b0423f52c46a152ff032e0a20abbb1d3191b /views/contacts_search.pug
parent644c287eede443c608eeab0cc6cd41da228947e3 (diff)
downloadserver-6ae417c0be86a44b6dfeb7537da1f9b70a288950.tar.gz
Rename pug files to match access url.
Diffstat (limited to 'views/contacts_search.pug')
-rw-r--r--views/contacts_search.pug31
1 files changed, 31 insertions, 0 deletions
diff --git a/views/contacts_search.pug b/views/contacts_search.pug
new file mode 100644
index 0000000..308cc41
--- /dev/null
+++ b/views/contacts_search.pug
@@ -0,0 +1,31 @@
+//- vim:ts=4:sw=4:
+doctype html
+html
+ head
+ include head
+ title User Search Results
+ body
+ include header
+ article
+
+ h1 User Search Results
+
+ if results && search
+ if results.length > 0
+ table.half.striped
+ thead
+ tr
+ th Name
+ th Last seen
+ tbody
+ each who in results
+ tr
+ td
+ a.black(href="/user/"+who.name)= who.name
+ td.w= human_date(who.atime)
+ else
+ p.error Nobody found matching "#{search}".
+
+ p
+ form(method="get" action="/contacts/search")
+ input(type="text" name="q" size=40 placeholder="Find user..." value=search required)