Teach log search about --grep, --author and --committer

This makes the log searching more explicit, using a dropdown box to specify
the commit field to match against.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli
2007-10-28 15:23:00 +01:00
parent 6ec5f36f27
commit 68ca032dbe
7 changed files with 40 additions and 10 deletions

View File

@ -417,9 +417,14 @@ void cgit_print_pageheader(char *title, int show_search)
html_hidden("id", cgit_query_sha1);
if (cgit_query_sha2)
html_hidden("id2", cgit_query_sha2);
html("<input type='text' name='q' value='");
html("<select name='qt'>");
html_option("grep", "log msg", cgit_query_grep);
html_option("author", "author", cgit_query_grep);
html_option("committer", "committer", cgit_query_grep);
html("</select>");
html("<input class='txt' type='text' name='q' value='");
html_attr(cgit_query_search);
html("'/></form>");
html("'/><input class='btn' type='submit' value='...'/></form>");
}
html("</td></tr>");
html("<tr><td id='content' colspan='2'>");