From 9f67e66b83d158b99582c2984fc253b6e6abd537 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 1 May 2025 22:04:10 +0200 Subject: Simplify form post actions. Put account management pages under "/account" URL prefix. Set logged in user in res.locals for use in pug templates. Tweak verification flow. Require password to change name and mail. Show user statistics on profile (use pug mixin). Remove "api" prefix on many routes. --- views/contacts_search.pug | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 views/contacts_search.pug (limited to 'views/contacts_search.pug') 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) -- cgit v1.2.3