summaryrefslogtreecommitdiff
path: root/views/search_user.pug
blob: 308cc41c03c0b5fd038af0d0487b5f6d6f82f6a7 (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
//- 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)