X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=templates%2Fhtml%2Fsearch.tmpl;h=41ca369cf1c3d6794f6b731155e4708f7d8261be;hb=e594b1fe3f88069be790f9954e66219f9ae5ae97;hp=3427f2a9bd40ea7e347efeeb671361a3ade9ba63;hpb=944e9ffd2b7f527a3e96bb33a8a5b17f965a7815;p=deb%2Fpackages.git diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl index 3427f2a..41ca369 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) ) %] +
[% 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$keyword_esc") %]
[% END %] @@ -48,16 +75,16 @@[% 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.") %]
[% 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 supressed.
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 %] @@ -91,12 +120,15 @@ Please consider using a longer keyword or more keywords.', too_many_hits) %] [% FOREACH s IN suites; suite = s.suite %]