X-Git-Url: https://git.deb.at/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fhtml%2Fsearch.tmpl;h=3cd004c94910f66c9fe5f8ee7bba6dff107b4862;hb=07134d873c7eed36befdb9fc06f6538ef8670f1c;hp=52e8c308e03d6bdf24127c61fe403aa9b054bb87;hpb=269a9d46938e0b4d178642ae8315602f9e5f3349;p=deb%2Fpackages.git diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl index 52e8c30..3cd004c 100644 --- a/templates/html/search.tmpl +++ b/templates/html/search.tmpl @@ -27,20 +27,47 @@ } 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 %] + +[% g('Search in specific 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 search to a specific 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('%u results have not been displayed due to the search parameters.', - "$search_url$keyword_esc", non_results) %]
+[% g('Some results have not been displayed due to the search parameters.', + "$search_url?keywords=$keyword_esc") %]
[% END %] @@ -48,9 +75,9 @@[% 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.") %]
[% ELSE %] -[% 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 %] @@ -88,7 +120,9 @@ [% FOREACH s IN suites; suite = s.suite %]