diff options
author | bbaetz%student.usyd.edu.au <> | 2002-12-20 16:21:24 +0100 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-12-20 16:21:24 +0100 |
commit | a40d927bfd9a9b3012be9e0f85da84aa4dd58344 (patch) | |
tree | f93d920e99a9739e831f24d94a3ab10127ecd952 /template/en/default/search | |
parent | 1a3c26e61fa709824d63fce85c41d89bd90774fd (diff) | |
download | bugzilla-a40d927bfd9a9b3012be9e0f85da84aa4dd58344.tar.gz bugzilla-a40d927bfd9a9b3012be9e0f85da84aa4dd58344.tar.xz |
Bug 173622 - Move template handling into a module. r=justdave, joel, a=justdave
Diffstat (limited to 'template/en/default/search')
-rw-r--r-- | template/en/default/search/search-advanced.html.tmpl | 7 | ||||
-rw-r--r-- | template/en/default/search/search.html.tmpl | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/template/en/default/search/search-advanced.html.tmpl b/template/en/default/search/search-advanced.html.tmpl index 6390741e3..765f08e25 100644 --- a/template/en/default/search/search-advanced.html.tmpl +++ b/template/en/default/search/search-advanced.html.tmpl @@ -25,6 +25,9 @@ # search/boolean-charts.html.tmpl. #%] +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + [% PROCESS global/header.html.tmpl title = "Search for bugs" onload = "selectProduct(document.forms['queryform']);initHelp();" @@ -35,7 +38,7 @@ [%# The decent help requires Javascript %] [% IF NOT help %] <p> - [% IF user_agent.search("Mozilla/5") %] + [% IF cgi.user_agent("Mozilla/5") %] <script> <!-- document.write("<a href='query.cgi?help=1'>Give me some help</a> (reloads page.)"); // --> @@ -51,7 +54,7 @@ <p> For help, mouse over the page elements. <font color="red"> - [% IF user_agent.match("Mozilla/5") %] + [% IF cgi.user_agent("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 %] diff --git a/template/en/default/search/search.html.tmpl b/template/en/default/search/search.html.tmpl index 6390741e3..765f08e25 100644 --- a/template/en/default/search/search.html.tmpl +++ b/template/en/default/search/search.html.tmpl @@ -25,6 +25,9 @@ # search/boolean-charts.html.tmpl. #%] +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + [% PROCESS global/header.html.tmpl title = "Search for bugs" onload = "selectProduct(document.forms['queryform']);initHelp();" @@ -35,7 +38,7 @@ [%# The decent help requires Javascript %] [% IF NOT help %] <p> - [% IF user_agent.search("Mozilla/5") %] + [% IF cgi.user_agent("Mozilla/5") %] <script> <!-- document.write("<a href='query.cgi?help=1'>Give me some help</a> (reloads page.)"); // --> @@ -51,7 +54,7 @@ <p> For help, mouse over the page elements. <font color="red"> - [% IF user_agent.match("Mozilla/5") %] + [% IF cgi.user_agent("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 %] |