From 8f95aa8d593c284a153a20e01ef3050343118c05 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 16 Mar 2023 22:19:54 +0100 Subject: Forum search using FTS5. --- views/forum_search.pug | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 views/forum_search.pug (limited to 'views/forum_search.pug') diff --git a/views/forum_search.pug b/views/forum_search.pug new file mode 100644 index 0000000..1301b76 --- /dev/null +++ b/views/forum_search.pug @@ -0,0 +1,28 @@ +//- vim:ts=4:sw=4: +doctype html +html + head + include head + title Forum Search Results + body + include header + article + h1 Forum Search Results + + table + thead + tr + th Author + th Thread + th Snippet + tobdy + each row in results + tr + td: a(href="/user/"+row.author)= row.author + td: a(href="/forum/thread/"+row.thread_id+"#"+row.post_id)= row.subject + td= row.snippet + + if user + p + form(method="get" action="/forum/search") + input(type="text" name="q" size=40 maxlength=80 placeholder="Search..." required) -- cgit v1.2.3