summaryrefslogtreecommitdiff
path: root/views/forum_view.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-16 22:19:54 +0100
committerTor Andersson <tor@ccxvii.net>2023-04-18 10:06:13 +0200
commit8f95aa8d593c284a153a20e01ef3050343118c05 (patch)
tree484dccb3a66624a9413a9b75ba9da2b3f9b60525 /views/forum_view.pug
parent44b2fed796f846bafd48b74c7a7d363d33b29258 (diff)
downloadserver-8f95aa8d593c284a153a20e01ef3050343118c05.tar.gz
Forum search using FTS5.
Diffstat (limited to 'views/forum_view.pug')
-rw-r--r--views/forum_view.pug7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/forum_view.pug b/views/forum_view.pug
index 46c1b1e..33be0ad 100644
--- a/views/forum_view.pug
+++ b/views/forum_view.pug
@@ -43,4 +43,9 @@ html
| #[a(href="/forum/page/"+(current_page+1)) &#x2192;]
if user
- p: a(href="/forum/post") New thread
+ p
+ form(method="get" action="/forum/search")
+ input(type="text" name="q" size=40 maxlength=80 placeholder="Search..." required)
+ if user
+ p
+ a(href="/forum/post") New thread