From 722c6fd54c889e0e0e953550467ed6b942f33dda Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 23 Jan 2012 12:49:32 +0800 Subject: Bug 719363: add instant search --- .../en/default/search/search-instant.html.tmpl | 83 ++++++++++++++++++++++ template/en/default/search/tabs.html.tmpl | 4 +- 2 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 template/en/default/search/search-instant.html.tmpl (limited to 'template/en/default') diff --git a/template/en/default/search/search-instant.html.tmpl b/template/en/default/search/search-instant.html.tmpl new file mode 100644 index 000000000..59cd8c551 --- /dev/null +++ b/template/en/default/search/search-instant.html.tmpl @@ -0,0 +1,83 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% PROCESS global/header.html.tmpl + title = "Instant Search" + javascript_urls = [ 'extensions/GuidedBugEntry/web/js/products.js', + 'js/instant-search.js', ] + yui = [ 'datatable', 'container' ] +%] + +[% default.product.push('Firefox') UNLESS default.product.size %] + + + +[% WRAPPER search/tabs.html.tmpl %] + +

+ This page provides instant results, however only the [% terms.bug %]'s summary + is searched. Products related to the selected product may also be searched. +

+ + + + + + + + + + +
+ + + +
+ + + +
+
+ +
+ +[% END %] + +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/search/tabs.html.tmpl b/template/en/default/search/tabs.html.tmpl index 6a2f7f70a..26ad4f39b 100644 --- a/template/en/default/search/tabs.html.tmpl +++ b/template/en/default/search/tabs.html.tmpl @@ -24,7 +24,9 @@ #%] [% WRAPPER global/tabs.html.tmpl - tabs = [ { name => 'specific', label => "Simple Search", + tabs = [ { name => 'instant', label => "Instant Search", + link => "query.cgi?format=instant" }, + { name => 'specific', label => "Simple Search", link => "query.cgi?format=specific" }, { name => 'advanced', label => "Advanced Search", link => "query.cgi?format=advanced" }, -- cgit v1.2.3-24-g4f1b