mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Added a search box.
This commit is contained in:
parent
767c2d98d5
commit
f2a33727e7
1 changed files with 11 additions and 1 deletions
12
html.c
12
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,
|
||||
|
|
Loading…
Reference in a new issue