commit f2a3372
default
·
2024-05-10 15:54:15 +0000 UTC
parent 767c2d9
Added a search box.
1 files changed,
+11,
-1
M
html.c
M
html.c
+11,
-1
1@@ -739,7 +739,17 @@ static xs_html *html_user_body(snac *user, int read_only)
2 xs_html_text(" - "),
3 xs_html_tag("a",
4 xs_html_attr("href", instance_url),
5- xs_html_text(L("instance"))));
6+ xs_html_text(L("instance"))),
7+ xs_html_text(" "),
8+ xs_html_tag("form",
9+ xs_html_attr("style", "display: inline!important"),
10+ xs_html_attr("class", "snac-search-box"),
11+ xs_html_attr("action", admin_url),
12+ xs_html_sctag("input",
13+ xs_html_attr("type", "text"),
14+ xs_html_attr("name", "q"),
15+ xs_html_attr("title", L("Search posts by content (regular expression)")),
16+ xs_html_attr("placeholder", L("Content search")))));
17 }
18
19 xs_html_add(body,