diff options
| author | 2024-05-10 17:54:15 +0200 | |
|---|---|---|
| committer | 2024-05-10 17:54:15 +0200 | |
| commit | f2a33727e781a9f7338d8321b3d5b504ca4dab8e (patch) | |
| tree | 2920bc3c5bd94dd81b9bfb3cc79dd8a7d55a8027 /html.c | |
| parent | Also add the 'More...' link if there was a search timeout. (diff) | |
| download | snac2-f2a33727e781a9f7338d8321b3d5b504ca4dab8e.tar.gz snac2-f2a33727e781a9f7338d8321b3d5b504ca4dab8e.tar.xz snac2-f2a33727e781a9f7338d8321b3d5b504ca4dab8e.zip | |
Added a search box.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 12 |
1 files changed, 11 insertions, 1 deletions
| @@ -739,7 +739,17 @@ static xs_html *html_user_body(snac *user, int read_only) | |||
| 739 | xs_html_text(" - "), | 739 | xs_html_text(" - "), |
| 740 | xs_html_tag("a", | 740 | xs_html_tag("a", |
| 741 | xs_html_attr("href", instance_url), | 741 | xs_html_attr("href", instance_url), |
| 742 | xs_html_text(L("instance")))); | 742 | xs_html_text(L("instance"))), |
| 743 | xs_html_text(" "), | ||
| 744 | xs_html_tag("form", | ||
| 745 | xs_html_attr("style", "display: inline!important"), | ||
| 746 | xs_html_attr("class", "snac-search-box"), | ||
| 747 | xs_html_attr("action", admin_url), | ||
| 748 | xs_html_sctag("input", | ||
| 749 | xs_html_attr("type", "text"), | ||
| 750 | xs_html_attr("name", "q"), | ||
| 751 | xs_html_attr("title", L("Search posts by content (regular expression)")), | ||
| 752 | xs_html_attr("placeholder", L("Content search"))))); | ||
| 743 | } | 753 | } |
| 744 | 754 | ||
| 745 | xs_html_add(body, | 755 | xs_html_add(body, |