summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-10 17:54:15 +0200
committerdefault <nobody@localhost>2024-05-10 17:54:15 +0200
commitf2a33727e781a9f7338d8321b3d5b504ca4dab8e (patch)
tree2920bc3c5bd94dd81b9bfb3cc79dd8a7d55a8027 /html.c
parent767c2d98d519c9bde43788336d269adf353e573f (diff)
Added a search box.
Diffstat (limited to 'html.c')
-rw-r--r--html.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/html.c b/html.c
index 3d378d1..a0a9cf7 100644
--- a/html.c
+++ b/html.c
@@ -739,7 +739,17 @@ static xs_html *html_user_body(snac *user, int read_only)
xs_html_text(" - "),
xs_html_tag("a",
xs_html_attr("href", instance_url),
- xs_html_text(L("instance"))));
+ xs_html_text(L("instance"))),
+ xs_html_text(" "),
+ xs_html_tag("form",
+ xs_html_attr("style", "display: inline!important"),
+ xs_html_attr("class", "snac-search-box"),
+ xs_html_attr("action", admin_url),
+ xs_html_sctag("input",
+ xs_html_attr("type", "text"),
+ xs_html_attr("name", "q"),
+ xs_html_attr("title", L("Search posts by content (regular expression)")),
+ xs_html_attr("placeholder", L("Content search")))));
}
xs_html_add(body,