X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fsearch.tmpl;h=317d424ccfea4a0700ae1a618a43debaba739b1d;hb=2b7709d2271f339165fb401ef02085d23af5db18;hp=f90586ae51b4d46a47fb803aa07fc6e94f5b3464;hpb=cc6c820a1e503808b7ac1e2bff132de23f87606b;p=deb%2Fpackages.git diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl index f90586a..317d424 100644 --- a/templates/html/search.tmpl +++ b/templates/html/search.tmpl @@ -1,4 +1,5 @@ [%- PROCESS 'config/archive_layout.tmpl' -%] +[%- PROCESS 'config/mirrors.tmpl' -%] [%- keyword_str = search_keywords.join(' '); keyword_esc = uri_escape(keyword_str); keyword_enc = html_encode(keyword_str); @@ -27,30 +28,56 @@ } navigation = [ { name => g('Package Search Results') } ] -%] +[%- PROCESS 'html/util.inc' -%]
[% g('You can try a different search on the Packages search page.', - searchformurl) %]
- [% IF opts.searchon != "names" && opts.exact %][% g('You have searched only for words exactly matching your keywords. You can try to search allowing subword matching.', make_search_url('',"keywords=$keyword_esc",'exact',0) ) %]
[% END %] [% END %] -[% IF opts.searchon == "names" && non_results %] -[% g('%u results have not been displayed due to the search parameters.', - "$search_url$keyword_esc", non_results) %]
+ +[% g('Limit to suite:') %] +[% FOREACH s IN all_suites %] + [% IF s != suite_str %] + [[% s %]] + [% ELSE %] + [[% s %]] + [% END %] +[% END %] +[% IF search_suites.size == 1 %] +
[% g('Search in all suites', + make_search_url('',"keywords=$keyword_esc",'suite','all')) %] +[% END %] + +
[% g('Limit to a architecture:') %] +[% FOREACH a IN all_architectures %] + [% IF a != arch_str %] + [[% a %]] + [% ELSE %] + [[% a %]] + [% END %] +[% END %] +[% IF search_architectures.size == 1 %] +
[% g('Search in all architectures', + make_search_url('',"keywords=$keyword_esc",'arch','any')) %] [% END %] +
[% g('Some results have not been displayed due to the search parameters.', + "$search_url?keywords=$keyword_esc") %]
+[% END %] + [%- PROCESS 'html/messages.tmpl' -%][% g("Note that this only shows the best matches, sorted by relevance. If the first few packages don't match what you searched for, try using more keywords or alternative keywords.") %]
+[% g("Note that this only shows the best matches, sorted by relevance. If the first few packages don't match what you searched for, try using more keywords or alternative keywords.") %]
+[% g('Your search was too wide so we will only display exact matches. At least %u results have been omitted and will not be displayed. Please consider using a longer keyword or more keywords.', - too_many_hits) %]
+
+[%- IF results %]
+[% g("Your keyword was too generic, for optimizing reasons some results might have been suppressed.
Please consider using a longer keyword or more keywords.") %]
+[%- ELSE -%]
+[% g("Your keyword was too generic.
Please consider using a longer keyword or more keywords.") %]
+[% END -%]
+
[% g('Sorry, your search gave no results') %]
[% END %] @@ -86,11 +122,13 @@