diff options
author | lpsolit%gmail.com <> | 2006-09-29 07:15:07 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-09-29 07:15:07 +0200 |
commit | 47695b5a92746b4ec5634e56f84753a6ababacaf (patch) | |
tree | 7732c27c39bed279f9377185c979340c80fda86b /template/en | |
parent | af2ae55fbcad961e42f750625c87fd5077d0e4e1 (diff) | |
download | bugzilla-47695b5a92746b4ec5634e56f84753a6ababacaf.tar.gz bugzilla-47695b5a92746b4ec5634e56f84753a6ababacaf.tar.xz |
Bug 354661: Provide a Bugzilla Quicksearch plugin for Firefox 2 and IE 7 users to install - Patch by Frédéric Buclin <LpSolit@gmail.com> r=gavin.sharp r=wurblzap a=myk
Diffstat (limited to 'template/en')
-rw-r--r-- | template/en/default/global/header.html.tmpl | 3 | ||||
-rw-r--r-- | template/en/default/index.html.tmpl | 5 | ||||
-rw-r--r-- | template/en/default/search/search-plugin.xml.tmpl | 28 |
3 files changed, 36 insertions, 0 deletions
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 026698426..c84f503d0 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -174,6 +174,9 @@ href="[% atomlink FILTER html %]" /> [% END %] + [%# Required for the 'Autodiscovery' feature in Firefox 2 and IE 7. %] + <link rel="search" type="application/opensearchdescription+xml" + title="[% terms.Bugzilla %]" href="./search_plugin.cgi"> </head> [%# Migration note: contents of the old Param 'bodyhtml' go in the body tag, diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl index 8d520dfab..61f724b41 100644 --- a/template/en/default/index.html.tmpl +++ b/template/en/default/index.html.tmpl @@ -116,6 +116,11 @@ function addSidebar() { [% END %] [% END %] <li id="sidebar"><a href="javascript:addSidebar()">Add to Sidebar</a> (requires a Mozilla browser like Mozilla Firefox)</li> + <li id="quick_search_plugin"> + <a href="javascript:window.external.AddSearchProvider('[% Param('urlbase') %]search_plugin.cgi')">Install + the Quick Search plugin</a> (requires Firefox 2 or Internet Explorer 7) + </li> + [%# List items of links to more things users can do on this installation. %] [% Hook.process("links") %] diff --git a/template/en/default/search/search-plugin.xml.tmpl b/template/en/default/search/search-plugin.xml.tmpl new file mode 100644 index 000000000..649c6e958 --- /dev/null +++ b/template/en/default/search/search-plugin.xml.tmpl @@ -0,0 +1,28 @@ +[%# 1.0@bugzilla.org #%] +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # Contributor(s): Frédéric Buclin <LpSolit@gmail.com> + # + #%] +[% PROCESS global/variables.none.tmpl %] +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> +<ShortName>[% terms.Bugzilla %]</ShortName> +<Description>[% terms.Bugzilla %] Quick Search</Description> +<InputEncoding>UTF-8</InputEncoding> +<Image width="16" height="16">data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABGdBTUEAAK%2FINwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAALBSURBVHjaYnxckcEAA3%2F%2B%2FT%2F17LUcH%2Fevf%2F8U%2BHmYGBkZMABAALEgc%2B68%2F3T227cf2tJKKhJLt59n%2FfmbnYnZV1KEhYkJrgYggBghNrz78fPIi3d8uvKBIdb%2FOaWPnzitLc97%2Bc5rFXnhnVO3%2BslLwjUABBDIhnsfPl%2Fj53VO91FX4Gfgkjxw%2Fd%2F6Q49%2FWStqyAj%2B%2B88gZqn%2B9u5rYU52iAaAAGL69%2F%2F%2F2d9%2FYiMclGT4fv76%2BZ9DbO%2FeA39%2BfJHVcvj5l%2Bnh03e%2FWThOvnwLtwEgAAAxAM7%2FBPj8%2FRYkHQYHAf3%2F%2Fv%2F%2B%2Fv8BAVNTUPX18yorLNHE2S8mB%2FT2%2Bq7a4dvu8iUSDgAAAAKICRgUv3%2F8ZGKGeIvpz6eXBvq61lZWLMwMv%2F5zMP7%2FqSAjVFyZ%2FNvZftuT10DnAAQAMQDO%2FwQIBAPz5Or6%2Ff0CBQEAAgT99ubq38z2%2BwT18%2FAM%2F%2BkNDAv6%2FQMCAA1GVVrhMze5h4kCCORpkd9%2F3n74KiHO%2B%2BffX8b%2Ff7m%2BXWP985%2Bf5R%2BPLNdfoK%2F%2F%2Ffv39%2BePj2%2FkZYR0fe0BAgikQZGX%2B9b9FzLS%2FH%2F%2B%2FGVgYGRlZWNlA7nv7z9QuDP8%2B8nw%2FRXjn68Mv4Gu%2FAwQQCCni3FxPLn7nIGZGegfNhYmNjYWZnBMASOakZER6Eumf9%2FYGT4y%2FHx%2F%2BfBFgAAC2cDGzPT99WeGvwzvv%2Fx89vrr%2F39%2FJER4pcT5Gf4z%2FP37D2jtj9%2B%2FL918fmzrKSsWNoAAgiaN%2Fz9%2Fff%2F6S4CP8%2BWbz9vWHfv54aukpAAz0Og%2Ff%2F7%2F%2Bs36668cO3ugED9QJUAAQTUArf7%2F8x87D9vRjcejhPiZhAUYcACAAGI5%2FOHH9ddvXzAxmjz%2B8P8lw4fXn5l4eRlwA4AAYmaTkBFg%2FKvJwfbkwZuXN57y%2Fv%2F34stXGR4uRmxpGwgAAgwA4%2FkfrfCWvLQAAAAASUVORK5CYII%3D</Image> +<Url type="text/html" method="GET" template="[% Param('urlbase') %]buglist.cgi"> + <Param name="quicksearch" value="{searchTerms}"/> +</Url> +<SearchForm>[% Param('urlbase') %]</SearchForm> +</OpenSearchDescription> |