From e39d738c39d37cdef115c145027f3eec85a62272 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Thu, 28 Dec 2006 02:01:49 +0100 Subject: 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 --- cgit.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 362b435..e114a50 100644 --- a/cgit.h +++ b/cgit.h @@ -55,6 +55,7 @@ extern int cgit_query_has_sha1; extern char *cgit_querystring; extern char *cgit_query_repo; extern char *cgit_query_page; +extern char *cgit_query_search; extern char *cgit_query_head; extern char *cgit_query_sha1; extern char *cgit_query_sha2; @@ -75,6 +76,7 @@ extern void htmlf(const char *format,...); extern void html_txt(char *txt); extern void html_ntxt(int len, char *txt); extern void html_attr(char *txt); +extern void html_hidden(char *name, char *value); extern void html_link_open(char *url, char *title, char *class); extern void html_link_close(void); extern void html_filemode(unsigned short mode); @@ -98,7 +100,7 @@ extern void cgit_print_error(char *msg); extern void cgit_print_date(unsigned long secs); extern void cgit_print_docstart(char *title, struct cacheitem *item); extern void cgit_print_docend(); -extern void cgit_print_pageheader(char *title); +extern void cgit_print_pageheader(char *title, int show_search); extern void cgit_print_repolist(struct cacheitem *item); extern void cgit_print_summary(); -- cgit v1.2.3-70-g09d2 t/Dockerfile?h=v0.7.0&id=5516a376a230ae98bd308e3b5ccbaafd8d6f4ab1&follow=1'>commitdiff
Commit message (Expand)AuthorFilesLines
2021-02-21#25 Check for folder again while lockingRené 'Necoro' Neumann1-0/+8
2021-02-21Strip `srcset` attributeRené 'Necoro' Neumann2-1/+8
2021-02-21Slight restructuringRené 'Necoro' Neumann4-14/+21
2021-02-21Clarify codeRené 'Necoro' Neumann1-5/+5
2021-02-21Update changelogRené 'Necoro' Neumann1-0/+2
2021-02-21#39 Ignore mails marked as deleted when looking for existing mails, as to not...René 'Necoro' Neumann1-0/+1
2021-02-21go mod tidyRené 'Necoro' Neumann1-8/+0
2021-02-16Fix goreleaser setup regarding dockerRené 'Necoro' Neumann1-3/+1
2021-02-16Prepare v0.6.0v0.6.0René 'Necoro' Neumann3-3/+8
2021-02-16Issue #46: Fix semantics of `n` resultRené 'Necoro' Neumann2-9/+15
2021-02-16Issue #46: Move and rename writer; add commentsRené 'Necoro' Neumann3-12/+21
2021-02-15Issue #46: Improvements; add testsRené 'Necoro' Neumann2-1/+48
2021-02-15Bump github.com/google/uuid from 1.1.4 to 1.2.0dependabot[bot]2-3/+3
2021-02-15Issue #46: Make the resulting email body not to include single \r or \n. This...René 'Necoro' Neumann2-2/+66
2021-01-20Bump github.com/PuerkitoBio/goquery from 1.6.0 to 1.6.1dependabot[bot]2-3/+3
2021-01-09Bump github.com/google/uuid from 1.1.2 to 1.1.4dependabot[bot]2-3/+3
2021-01-09Bump github.com/emersion/go-message from 0.14.0 to 0.14.1 (#42)dependabot[bot]2-3/+3
2020-11-28Bump github.com/emersion/go-message from 0.13.0 to 0.14.0 (#38)dependabot[bot]2-3/+9
2020-11-28Bump github.com/google/go-cmp from 0.5.2 to 0.5.4 (#37)dependabot[bot]2-3/+3
2020-11-23Fix release.ymlv0.5.2René 'Necoro' Neumann1-3/+10
2020-11-23Prepare v0.5.2René 'Necoro' Neumann3-3/+8
2020-11-20Bump github.com/gabriel-vasile/mimetype from 1.1.1 to 1.1.2dependabot[bot]2-3/+3
2020-11-04Clean dependabot.ymlRené 'Necoro' Neumann1-4/+0