mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 01:54:28 +02:00
Add generic support for search box in page header
This adds the ability to show a search box in any pageheader with correct href and hidden form data, but does not enable the box on any pages. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
27cd3b2a70
commit
e39d738c39
7 changed files with 51 additions and 5 deletions
|
@ -17,7 +17,7 @@ void cgit_print_repolist(struct cacheitem *item)
|
|||
|
||||
chdir(cgit_root);
|
||||
cgit_print_docstart(cgit_root_title, item);
|
||||
cgit_print_pageheader(cgit_root_title);
|
||||
cgit_print_pageheader(cgit_root_title, 0);
|
||||
|
||||
if (!(d = opendir("."))) {
|
||||
cgit_print_error(fmt("Unable to scan repository directory: %s",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue