diff options
author | gerv%gerv.net <> | 2002-11-27 05:11:16 +0000 |
---|---|---|
committer | gerv%gerv.net <> | 2002-11-27 05:11:16 +0000 |
commit | f45012516248617908cf1a5269b042fcec2b4037 (patch) | |
tree | 93a7c126d3403619da2fd46d3a7d76b516e9d6d1 /template/en/default/search/search.html.tmpl | |
parent | 738d3ec0bee8276d811704a86329f4da65268c05 (diff) | |
download | bugs-f45012516248617908cf1a5269b042fcec2b4037.tar bugs-f45012516248617908cf1a5269b042fcec2b4037.tar.gz bugs-f45012516248617908cf1a5269b042fcec2b4037.tar.bz2 bugs-f45012516248617908cf1a5269b042fcec2b4037.tar.xz bugs-f45012516248617908cf1a5269b042fcec2b4037.zip |
Bug 114179 - Concentration, improvement, and templatisation of Bugzilla general user help system. Patch by gerv; r,a=justdave.
Diffstat (limited to 'template/en/default/search/search.html.tmpl')
-rw-r--r-- | template/en/default/search/search.html.tmpl | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/template/en/default/search/search.html.tmpl b/template/en/default/search/search.html.tmpl index 4dd197218..6390741e3 100644 --- a/template/en/default/search/search.html.tmpl +++ b/template/en/default/search/search.html.tmpl @@ -27,11 +27,37 @@ [% PROCESS global/header.html.tmpl title = "Search for bugs" - onload = "selectProduct(document.forms['queryform']);" + onload = "selectProduct(document.forms['queryform']);initHelp();" %] [% button_name = "Search" %] +[%# The decent help requires Javascript %] +[% IF NOT help %] + <p> + [% IF user_agent.search("Mozilla/5") %] + <script> <!-- + document.write("<a href='query.cgi?help=1'>Give me some help</a> (reloads page.)"); + // --> + </script> + <noscript> + <a href="queryhelp.cgi">Give me help</a> with this form. + </noscript> + [% ELSE %] + <a href="queryhelp.cgi">Give me help</a> with this form. + [% END %] + </p> +[% ELSE %] + <p> + For help, mouse over the page elements. + <font color="red"> + [% IF user_agent.match("Mozilla/5") %] + Note that if the help popups are hidden by form element scroll bars, + this is a bug in your browser, not in Bugzilla. + [% END %] + </font> + </p> +[% END %] <form method="get" action="buglist.cgi" name="queryform"> [% PROCESS search/form.html.tmpl %] @@ -48,4 +74,6 @@ </form> +[% PROCESS "search/search-help.html.tmpl" IF help %] + [% PROCESS global/footer.html.tmpl %] |