summaryrefslogtreecommitdiff
path: root/views/search_user.pug
diff options
context:
space:
mode:
Diffstat (limited to 'views/search_user.pug')
-rw-r--r--views/search_user.pug31
1 files changed, 31 insertions, 0 deletions
diff --git a/views/search_user.pug b/views/search_user.pug
new file mode 100644
index 0000000..bc67cf6
--- /dev/null
+++ b/views/search_user.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= 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)