author | Lars Hjemli <hjemli@gmail.com> | 2006-12-28 01:01:49 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2006-12-28 01:01:49 (UTC) |
commit | e39d738c39d37cdef115c145027f3eec85a62272 (patch) (unidiff) | |
tree | be60a07674a0d118d42f572a35b62ada9529a6bd /cgit.h | |
parent | 27cd3b2a700e1cc46cd0393ddea48c07b62ee3a6 (diff) | |
download | cgit-e39d738c39d37cdef115c145027f3eec85a62272.zip cgit-e39d738c39d37cdef115c145027f3eec85a62272.tar.gz cgit-e39d738c39d37cdef115c145027f3eec85a62272.tar.bz2 |
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>
-rw-r--r-- | cgit.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -54,8 +54,9 @@ extern int cgit_query_has_sha1; | |||
54 | 54 | ||
55 | extern char *cgit_querystring; | 55 | extern char *cgit_querystring; |
56 | extern char *cgit_query_repo; | 56 | extern char *cgit_query_repo; |
57 | extern char *cgit_query_page; | 57 | extern char *cgit_query_page; |
58 | extern char *cgit_query_search; | ||
58 | extern char *cgit_query_head; | 59 | extern char *cgit_query_head; |
59 | extern char *cgit_query_sha1; | 60 | extern char *cgit_query_sha1; |
60 | extern char *cgit_query_sha2; | 61 | extern char *cgit_query_sha2; |
61 | extern int cgit_query_ofs; | 62 | extern int cgit_query_ofs; |
@@ -74,8 +75,9 @@ extern void html(const char *txt); | |||
74 | extern void htmlf(const char *format,...); | 75 | extern void htmlf(const char *format,...); |
75 | extern void html_txt(char *txt); | 76 | extern void html_txt(char *txt); |
76 | extern void html_ntxt(int len, char *txt); | 77 | extern void html_ntxt(int len, char *txt); |
77 | extern void html_attr(char *txt); | 78 | extern void html_attr(char *txt); |
79 | extern void html_hidden(char *name, char *value); | ||
78 | extern void html_link_open(char *url, char *title, char *class); | 80 | extern void html_link_open(char *url, char *title, char *class); |
79 | extern void html_link_close(void); | 81 | extern void html_link_close(void); |
80 | extern void html_filemode(unsigned short mode); | 82 | extern void html_filemode(unsigned short mode); |
81 | 83 | ||
@@ -97,9 +99,9 @@ extern char *cgit_pageurl(const char *reponame, const char *pagename, | |||
97 | extern void cgit_print_error(char *msg); | 99 | extern void cgit_print_error(char *msg); |
98 | extern void cgit_print_date(unsigned long secs); | 100 | extern void cgit_print_date(unsigned long secs); |
99 | extern void cgit_print_docstart(char *title, struct cacheitem *item); | 101 | extern void cgit_print_docstart(char *title, struct cacheitem *item); |
100 | extern void cgit_print_docend(); | 102 | extern void cgit_print_docend(); |
101 | extern void cgit_print_pageheader(char *title); | 103 | extern void cgit_print_pageheader(char *title, int show_search); |
102 | 104 | ||
103 | extern void cgit_print_repolist(struct cacheitem *item); | 105 | extern void cgit_print_repolist(struct cacheitem *item); |
104 | extern void cgit_print_summary(); | 106 | extern void cgit_print_summary(); |
105 | extern void cgit_print_log(const char *tip, int ofs, int cnt); | 107 | extern void cgit_print_log(const char *tip, int ofs, int cnt); |